Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git c7d5d8fa33a0f23b262b695d17fdffdefa8dc940)

Options
Warnings
Boost 1.73.0
C++2b
no pedantic

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2b
prog.cc:2:14: error: no matching function for call to 'f'
int main() { f(); }  // error: no matching function for call to 'f'
             ^
prog.cc:1:6: note: candidate function not viable: constraints not satisfied
void f() requires false { }
     ^
prog.cc:1:19: note: because 'false' evaluated to false
void f() requires false { }
                  ^
1 error generated.
Exit Code:
1