This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12272] using declaration shadows namespace
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2003 00:13:12 -0000
- Subject: [Bug c++/12272] using declaration shadows namespace
- References: <20030914020800.12272.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12272
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Doesn't find namespace |using declaration shadows
| |namespace
------- Additional Comments From bangerth at dealii dot org 2003-09-15 00:13 -------
Here's a cut-down testcase:
----------------------------------------------
namespace NS1 {
namespace NS2 {
};
}
namespace NS2 {
class X;
}
using namespace NS1;
typedef NS2::X Y;
--------------------------------
It fails like so with 3.3:
tmp/g> ~/bin/gcc-3.3/bin/c++ -c x.cc
x.cc:10: error: syntax error before `::' token
I think it should pass. I'm at a machine where I don't have my compiler collection, so
I can't say whether this is a regression or what.
W.