This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8701: Internal compiler error in expand_call, at calls.c:3049
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, lauvray at rational dot com, nobody at gcc dot gnu dot org
- Date: 28 Nov 2002 00:19:03 -0000
- Subject: Re: c++/8701: Internal compiler error in expand_call, at calls.c:3049
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, lauvray at rational dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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