Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

$
prog.cc:2:16: error: static_assert failed "error!"
struct Error { static_assert( B, "error!" ); };
               ^              ~
prog.cc:13:26: note: in instantiation of template class 'Error<false>' requested here
auto f( T ) -> decltype( wrap( raise( 0 ) ) );
                         ^
prog.cc:16:22: warning: unused variable 'obj' [-Wunused-variable]
    decltype( f(0) ) obj;
                     ^
1 warning and 1 error generated.
Exit Code:
1