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(T) [with T = int]':
prog.cc:13:15:   required from here
prog.cc:8:12: error: deduced return type does not satisfy placeholder constraints
    8 |     return 42;
      |            ^~
prog.cc:8:12: note: constraints not satisfied
prog.cc:2:13: note: 'false' is never satisfied
    2 | concept C = false;
      |             ^~~~~
Exit Code:
1