[Bug c++/25006] failure "using" a name contained in a class

2005-11-30 Thread reichelt at gcc dot gnu dot org
--- 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

[Bug c++/25006] failure "using" a name contained in a class

2005-11-30 Thread reichelt at gcc dot gnu dot org
--- Comment #3 from reichelt at gcc dot gnu dot org 2005-11-30 21:09 --- This is really invalid code. Paragraph [7.3.3]/6 states: A using-declaration for a class member shall be a member-declaration. In your code snippet "using ::Foo::Bar::FooBar;" is a using-declaration for "FooBar

[Bug c++/25006] failure "using" a name contained in a class

2005-11-23 Thread gdr at integrable-solutions dot net
--- Comment #2 from gdr at integrable-solutions dot net 2005-11-23 19:36 --- Subject: Re: failure "using" a name contained in a class "pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | ICC rejects it as invalid too: | t.cc(7): error: a class-qualified name is not allowed

[Bug c++/25006] failure "using" a name contained in a class

2005-11-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-23 18:51 --- ICC rejects it as invalid too: t.cc(7): error: a class-qualified name is not allowed using ::Foo::Bar::FooBar; // line 7 So does Comeau with the same error message. -- http://gcc.gnu.org/bugzilla/show_bug.cg