c++/287: Re: internal error
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed Jun 7 13:06:00 GMT 2000
>Number: 287
>Category: c++
>Synopsis: internal error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: analyzed
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 13:06:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Daniel Hempel <hempel@zib.de>
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Original-Message-ID: <14581.52634.247659.24569@hermesbaby.zib.de>
Date: Thu, 13 Apr 2000 15:37:30 +0200 (CEST)
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.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list