c++/8701: Internal compiler error in expand_call, at calls.c:3049
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Thu Nov 28 14:34:00 GMT 2002
Synopsis: Internal compiler error in expand_call, at calls.c:3049
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Wed Nov 27 16:19:01 2002
State-Changed-Why:
The bug is only in SuSE's version of gcc 3.2, not in the FSF version.
Therefore, I close the PR.
Some details:
After applying the patches from the SuSE-distribution to the FSF 3.2 version
and bootstrapping the compiler for i486-pc-linux-gnu I can reproduce the bug.
(In fact the first 42 ;-) patches are sufficient to trigger the bug, probably
much less, but I didn't investigate further.) Bootstrapping for
i686-pc-linux-gnu does *not* trigger the bug.
A shorter testcase that causes the ICE in SuSE's compiler is the following:
---------------------------snip here--------------------------
template <class T> void bar(T&, T, int, int, int) {}
template <class T> struct A
{
void foo() const{ T t; bar(t, t, 0, 0, 0); }
};
class B
{
double d;
char c;
};
template struct A<B>;
---------------------------snip here--------------------------
BTW, a similar bug is 8240.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8701
More information about the Gcc-bugs
mailing list