This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1956: Internal compiler error related to nested function/optimisation
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1956: Internal compiler error related to nested function/optimisation
- From: a dot p dot selby at pobox dot com
- Date: 13 Feb 2001 01:14:41 -0000
- Reply-To: a dot p dot selby at pobox dot com
>Number: 1956
>Category: c
>Synopsis: Internal compiler error related to nested function/optimisation
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Feb 12 17:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Alex Selby
>Release: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
Linux 2.2.16-3, x86
>Description:
The following error message occurs
../../gcc/function.c:3274: Internal compiler error in function instantiate_virtual_regs_1
Seems to happen (with slightly varying error messages)
using any version of gcc I've tried it with,
including the CodeSourcery online compiler.
>How-To-Repeat:
Compile this file with -c -O3
main(){
int j;
double *prb;
for(j=0;j<100;j++)prb[j]=0;
{
double f(){
double p;
int i;
for(i=0;i<j;i++)p+=prb[i];
}
}
}
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: