Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20191112 (experimental)

Options
Warnings
Boost 1.71.0
C++2a(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
prog.cc:4:14: error: constraint expression does not have type 'bool'
    4 |     requires 2 + 2 == 5
      |              ^
prog.cc:4:16: error: expression after 'requires' must be enclosed in parentheses
    4 |     requires 2 + 2 == 5
      |              ~~^~~~~~~~
      |              (         )
Exit Code:
1