[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c++/25006] failure "using" a name contained in a class
From:       "reichelt at gcc dot gnu dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2005-11-30 21:13:56
Message-ID: 20051130211356.25953.qmail () sourceware ! org
[Download RAW message or body]



------- Comment #4 from reichelt at gcc dot gnu dot org  2005-11-30 21:13 -------
> Or the other way round: Because the using-declaration for "FooBar" is not
> inside a class, it cannot be a member-declaration according to [7.3.3]/6.
> Therefore "::Foo::Bar" cannot be a class-name - it has to be a
> namespace-name. And that's what GCC's error message says.

Sorry, the "according to" is at the wrong place.
This should read:

Or the other way round: Because the using-declaration for "FooBar" is not
inside a class, it cannot be a member-declaration. Therefore "::Foo::Bar"
cannot be a class-name according to [7.3.3]/6. Which means it has to be
a namespace-name. And that's what GCC's error message says.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25006

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic