internal error

Daniel Hempel hempel@zib.de
Thu Apr 13 06:38:00 GMT 2000


Hello,
here is a little programm that causes an internal compiler error. If you
need further help or information, please contact me ...

Daniel Hempel <hempel@zib.de>
 
------------------------------------------------------------------------------
gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc version 2.7.2.3


uname -a
Linux hermesbaby 2.0.35 #38 Wed Feb 10 16:11:02 CET 1999 i586 unknown


compiler options
g++ -Wall -ansi -pedantic file.cc


file.cc
______________________________________________________________________________
template<int k> struct A
{
  static const int len = k;
};

// I am actually not sure, if this is covered by the standard:
// Please tell me, if it isn't
template<class S>
void f(A<S::len * S::len> b) 
{ }


int main()
{
  A<4> b;
  f<A<2> >(b);
  return 0;
}
------------------------------------------------------------------------------

Compileroutput:
file.cc: In function `int main()':
file.cc:16: Internal compiler error.
file.cc:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.
file.cc:16: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.


More information about the Gcc-bugs mailing list