Internal compiler error from g++ 2.95.2

Neil Booth neil@daikokuya.demon.co.uk
Mon Sep 3 11:17:00 GMT 2001


James.Kanze@t-mobil.de wrote:-

> I've got an internal compiler error from 2.95.2.  (There is an error
> in the code; I know. In the actual program, there was a similarly
> named class which wasn't a template that I meant to inherit from.)  I
> have no idea if it is present in later versions, but you might want to
> check.
> 
> -----------------begin source.cc------------------
> namespace Util {
> template< class T >
> class X
> {
> } ;
> }
> 
> class RAS : public Util::X
> {
> };

FWIW 3.1 seems to compile it without comment.

Neil.



More information about the Gcc-bugs mailing list