Language
C++
Compiler
gcc HEAD 11.0.0 20200927 (experimental)
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc HEAD 11.0.0 20200927 (experimental)
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a prog.cc: In function 'int main()':
prog.cc:13:5: warning: statement has no effect [-Wunused-value]
13 | var<int>;
| ^~~~~~~~
prog.cc:14:5: warning: statement has no effect [-Wunused-value]
14 | var<double>;
| ^~~~~~~~~~~
prog.cc:15:5: warning: statement has no effect [-Wunused-value]
15 | var<float>;
| ^~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = long int]':
prog.cc:8:64: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/type_traits:2556:11: error: no type named 'type' in 'struct std::enable_if<false, long int>'
2556 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~