Language
C++
Compiler
gcc HEAD 9.0.0 20190121 (experimental)
Options
Don't Use Boost
C++2a
no pedantic
$ g++ prog.cc -std=c++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20190121 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -std=c++2a
prog.cc:3:46: error: no matching function for call to 'f<__builtin_is_constant_evaluated()>()'
3 | int x = f<__builtin_is_constant_evaluated()>();
| ^
prog.cc:1:20: note: candidate: 'template<bool <anonymous> > int f()'
1 | template<bool> int f();
| ^
prog.cc:1:20: note: template argument deduction/substitution failed: