int main() { } struct fuck { int i; fuck() try : i(100) { } catch(...) { } }; struct fuck2 { int i; fuck2() try : i{100} { } catch(...) { } };
Standard input is empty
prog.cpp:25:2: error: expected unqualified-id before ‘{’ token { ^ prog.cpp:27:2: error: expected unqualified-id before ‘catch’ catch(...) ^ prog.cpp: In constructor ‘fuck2::fuck2()’: prog.cpp:24:10: error: expected ‘{’ at end of input : i{100} ^ prog.cpp:24:10: error: expected ‘catch’ at end of input prog.cpp:24:10: error: expected ‘(’ at end of input prog.cpp:24:10: error: expected type-specifier at end of input prog.cpp:24:10: error: expected ‘)’ at end of input prog.cpp:24:10: error: expected ‘{’ at end of input
Standard output is empty