Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 9.0.0 (https://github.com/llvm-mirror/clang.git 886a8403b9e9828aefc76b8d7c8187210dd121d6) (https://github.com/llvm-mirror/llvm.git 1dcbea8cd57df1d632b3ec73fc99880bdf5c2d05)

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-head/include -std=gnu++2a
prog.cc:6:28: error: type 'int' cannot be used prior to '::' because it has no members
constexpr int f() { return T::value; }
                           ^
prog.cc:15:25: note: in instantiation of function template specialization 'f<int>' requested here
void h(decltype(int{B ? f<T>() : 0}));
                        ^
prog.cc:22:3: note: while substituting explicitly-specified template arguments into function template 'h' 
  h<false, int>(0);  //compile error!
  ^
1 error generated.
Exit Code:
1