Language
C++
Compiler
gcc HEAD 11.0.0 20201026 (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
20
20
Exit Code:
0
Author
anonymous
over 4 years ago
C++
gcc HEAD 11.0.0 20201026 (experimental)
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'constexpr int f()':
prog.cc:5:43: warning: 'std::is_constant_evaluated' always evaluates to true in 'if constexpr' [-Wtautological-compare]
5 | if constexpr (std::is_constant_evaluated()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
20
20