Language
C++
Compiler
gcc HEAD 9.0.1 20190424 (experimental)
Options
Warnings
Boost 1.70.0
C++17
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=c++17 -pedantic-errors
Exit Code:
1
Author
anonymous
about 6 years ago
C++
gcc HEAD 9.0.1 20190424 (experimental)
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=c++17 -pedantic-errors
prog.cc: In instantiation of 'class C<int>':
prog.cc:15:10: required from here
prog.cc:10:12: error: no type named 'type' in 'struct std::enable_if<false, int>'
10 | explicit C() {}
| ^
prog.cc: In instantiation of 'class C<double>':
prog.cc:18:13: required from here
prog.cc:7:3: error: no type named 'type' in 'struct std::enable_if<false, int>'
7 | C() {}
| ^