This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11762] namespace aliasing ICE in warn_extern_redeclared_static
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2003 15:57:04 -0000
- Subject: [Bug c++/11762] namespace aliasing ICE in warn_extern_redeclared_static
- References: <20030801154505.11762.bkoz@gcc.gnu.org>
- 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=11762
------- Additional Comments From gdr at integrable-solutions dot net 2003-08-01 15:57 -------
Subject: Re: New: namespace aliasing ICE in warn_extern_redeclared_static
[...]
| #if 0
| namespace std
| {
| using _GLIBCXX_NAMESPACE_STD::vector;
| }
| #else
| // XXX Cannot re-open for specialization below.
| namespace std = _GLIBCXX_NAMESPACE_STD;
| #endif
Benjamin,
While the ICE is definitely a bug in the compiler, we cannot write
namesapce std = whatever;
because ::std is treated magically in the compiler, that is, before we
start parsing inputs, we (in front end, I mean) magically declare std as
an orignal nameespace -- and we put there many stuff.
I'll, however, take care of this issue.
-- Gaby