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.

Reply via email to