[Bug c++/11762] namespace aliasing ICE in warn_extern_redeclared_static

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Aug 1 15:57:00 GMT 2003


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



More information about the Gcc-bugs mailing list