Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 2 years ago

Language

C++

Compiler

gcc 12.2.0

Options
Warnings
Boost 1.81.0
C++2a
-pedantic

Author

anonymous

almost 2 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.81.0-gcc-12.2.0/include -std=c++2a -pedantic
prog.cc:9:9: warning: the 'bool' keyword is not allowed in a C++20 concept definition
    9 | concept bool myConcept() {
      |         ^~~~
prog.cc: In function 'concept bool myConcept()':
prog.cc:11:26: error: return-type-requirement is not a type-constraint
   11 |         { a.foo()   } -> int;
      |                          ^~~
prog.cc:12:26: error: return-type-requirement is not a type-constraint
   12 |         { a.bar(0)  } -> int;
      |                          ^~~
Exit Code:
1