This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71975] In c++11/14 mode enumname::name is assumed name to be part of the enumname
- From: "gw.fossdev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Jul 2016 09:59:03 +0000
- Subject: [Bug c++/71975] In c++11/14 mode enumname::name is assumed name to be part of the enumname
- Auto-submitted: auto-generated
- References: <bug-71975-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71975
--- Comment #4 from Gert <gw.fossdev at gmail dot com> ---
Regarding the "whitespace" I didn't know that with something like
namespace foo { class bar {}; }
one can actually write
foo ::bar x;
i.e. add whitespaces between a namespace or class name and "::" before the
nested name, and I'm quite positive that I have never seen code where this is
actually done. This led me to the conclusion that the parser might be skipping
over whitespaces where it is not supposed to do so.