This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12272] wrong error message using declaration shadows namespace
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2005 13:24:22 -0000
- Subject: [Bug c++/12272] wrong error message using declaration shadows namespace
- References: <bug-12272-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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