https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81836
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-21 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- Confirmed, clang's message is: $ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 81836.cc $ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic 81836.cc 81836.cc:8:1: error: expected a class or namespace foo ::Foo::g() { return 1; } ^ 81836.cc:8:12: error: C++ requires a type specifier for all declarations foo ::Foo::g() { return 1; } ~~~ ^ 2 errors generated. $