Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190825 (experimental)

Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
Raw compiler options
-fconcepts

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a -fconcepts
prog.cc: In instantiation of 'std::size_t getSize(const T&) [with T = int; std::size_t = long unsigned int]':
prog.cc:12:14:   required from here
prog.cc:6:14: error: request for member 'size' in 'v', which is of non-class type 'const int'
    6 |     return v.size(); // OK, syntactically correct template (phase 1)
      |            ~~^~~~
Exit Code:
1