[Bug c++/12272] wrong error message using declaration shadows namespace

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 14 13:24:00 GMT 2005



------- Comment #13 from reichelt at gcc dot gnu dot org  2005-11-14 13:24 -------
Fixed on mainline by Mark's patch for PR20293:
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00942.html

We now get:

PR12272.cc:10: error: reference to 'NS2' is ambiguous
PR12272.cc:5: error: candidates are: namespace NS2 { }
PR12272.cc:2: error:                 namespace NS1::NS2 { }
PR12272.cc:10: error: expected initializer before 'Y'


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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



More information about the Gcc-bugs mailing list