Language
C++
Compiler
clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 7f717b6d1f65f8474e8633b040a16c55f0ad6b96)
Options
Warnings
Don't Use Boost
C++2a
no pedantic
$ clang++ prog.cc -Wall -Wextra -std=c++2a
Exit Code:
1
Author
anonymous
over 4 years ago
C++
clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 7f717b6d1f65f8474e8633b040a16c55f0ad6b96)
Author
anonymous
over 4 years ago
$ clang++ prog.cc -Wall -Wextra -std=c++2a
prog.cc:9:24: error: call to consteval function 'assert_copyable<N>' is not a constant expression
using check = decltype(assert_copyable<N>());
^
prog.cc:9:24: note: undefined function 'assert_copyable<N>' cannot be used in a constant expression
prog.cc:8:38: note: declared here
template <typename T> consteval void assert_copyable() { T t; T t2 = t; }
^
1 error generated.