egcs1.1.1 namespace bug?

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Fri Mar 12 05:06:00 GMT 1999


> I suspect this library is a great test case for EGCS, since it makes 
> heavy use of exception handling, STL, and namespaces.

Thanks for your bug report, and sorry for not responding earlier. I've
analysed the problem, and found it to be a combination of two bugs:

a) There is no std::iterator in egcs' libstdc++. We don't have
   libstdc++ in std::, and then SGI STL decides that we shouldn't
   pollute the global namespace with 'iterator'.
b) The compiler crashes when a non-existing template is referenced.
   This is fixed in the current development code, but not in 1.1.2.

There is a simple work-around: Instead of writing 

std ::iterator< std ::random_access_iterator_tag, seqref<T>, int>

you can write

random_access_iterator< seqref<T>, int>

Hope this helps,
Martin


More information about the Gcc-bugs mailing list