[Bug c++/58948] c++0x support for enums in namespaces
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 1 07:10:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58948
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The example code looks invalid to me, because
::G::A ::G::ref()
is parsed as
::G::A::G::ref()
but there is no nested G in A and even it it where this could never contain a
member function ref. To fix this write any of
::G::A G::ref()
auto ::G::ref() -> ::G::A
I don't think that the code was guaranteed to be well-formed in C++03, but the
wording has been improved since then to clarify it isn't.
More information about the Gcc-bugs
mailing list