Internal compiler error, typedef/template parameter name collision?

Harry Butterworth
Sun Jan 17 08:48:00 GMT 1999


The following code causes g++ to crash:

template< class A > class C
    typedef A B;

template< class B > class D
    public C< B >
    class E
        F( B );

bash-2.01$ g++ --version
bash-2.01$ g++ killegcs.cpp
g++: Internal compiler error: program cc1plus got fatal signal 11
bash-2.01$ uname -a
Linux slinky 2.0.36 #2 Sat Nov 28 18:59:25 EST 1998 i586 unknown

My system is a Debian slink beta snapshot from 05/01/99 and I've seen
the same problem with that version of the compiler compiled from source
on my RedHat 5.1 system too.

Harry Butterworth

More information about the Gcc-bugs mailing list