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]

template related (?) internal compiler error


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>


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