This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]