template related (?) internal compiler error

Mattias Rönnblom hofors@lysator.liu.se
Sun Aug 9 15:32:00 GMT 1998


Hi.

egcs 1.0.3 fails with internal compiler error compiling the following
piece of (illegal) C++ code.

mattias@isengard$~/src/c++> g++ -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
mattias@isengard$~/src/c++> cat > kex.cc
template<class T>
class TheTemplate
{
public:
  TheTemplate( void );
  T& get( void );
};


template<class T>
TheTemplate<T>::TheTemplate( void )
{}

T& TheTemplate<T>::get( void )
{}

int main( void )
{ return 0; }
mattias@isengard$~/src/c++> g++ kex.cc
kex.cc:14: Internal compiler error.
kex.cc:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.
mattias@isengard$~/src/c++> 

Red Hat Linux 5.0 (intel).

Sorry if this is already known/fixed.

//Mattias Rönnblom

<hofors@lysator.liu.se>



More information about the Gcc-bugs mailing list