This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81836] ill-formed qualified name not diagnosed
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 14:43:33 +0000
- Subject: [Bug c++/81836] ill-formed qualified name not diagnosed
- Auto-submitted: auto-generated
- References: <bug-81836-4@http.gcc.gnu.org/bugzilla/>
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.
$