Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 10.0.0 20191015 (experimental)

Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors

$ g++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
prog.cc: In instantiation of 'auto [requires ::C<<placeholder>, >] f(auto:1) [with auto:1 = int]':
prog.cc:12:15:   required from here
prog.cc:7:12: error: deduced return type does not satisfy placeholder constraints
    7 |     return 42;
      |            ^~
prog.cc:7:12: note: constraints not satisfied
prog.cc:2:13: note: 'false' is never satisfied
    2 | concept C = false;
      |             ^~~~~
Exit Code:
1