Ralf Habacker <> changed:

           What    |Removed                     |Added
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |

--- Comment #1 from Ralf Habacker <> ---
(In reply to Daniele E. Domenichelli from comment #0)
> A class declared in this way:
> ---
> namespace test {
> class test;
You declare class test to be a member of namespace test
> }
> class test::foo
You define a class foo inside test, which is not declared in namespace test
> {
>     test();
> };
> ---

This is not supported by the c++ standard. See Namespace member definitions
2 Members of a named namespace can also be defined outside that namespace by
explicit qualification of the name being defined, provided that the entity
being defined was already declared in the namespace and the definition appears
after the point of declaration in a namespace that encloses the declaration’s

The correct c++ fragments looks then 

namespace test {
class foo;

class test::foo

Importing this code creates class test::foo.

You are receiving this mail because:
You are watching all bug changes.

Reply via email to