Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20190121 (experimental)

Options
Don't Use Boost
C++2a
no pedantic

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:
Exit Code:
1