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++/11762] namespace aliasing ICE in warn_extern_redeclared_static


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


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