Language
C++
Compiler
clang 6.0.0
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.0/include -std=gnu++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
clang 6.0.0
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.0/include -std=gnu++2a
prog.cc:7:4: error: 'decltype(((std::ostringstream{}) << "< "))' (aka 'std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > &&') is not a class, namespace, or enumeration
decltype(((std::ostringstream{}) << "< "))::nothing;
^
prog.cc:8:4: error: 'decltype((s << "< "))' (aka 'basic_ostream<char, std::__1::char_traits<char> > &') is not a class, namespace, or enumeration
decltype((s << "< "))::nothing;
^
2 errors generated.