This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/10059: internal compiler error, scope problem?
- From: martin dot green at uk dot thalesgroup dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 13 Mar 2003 11:37:37 -0000
- Subject: c/10059: internal compiler error, scope problem?
- Reply-to: martin dot green at uk dot thalesgroup dot com
>Number: 10059
>Category: c
>Synopsis: internal compiler error, scope problem?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 13 11:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Martin Green
>Release: gcc version 2.95.2 G4 (Cetia ID:00182)
>Organization:
>Environment:
unix
>Description:
void form(vector float fa,float vd)
{
}
vector float ff;
float vc,vd;
int main()
{ form(ff,vc); // ok
form(ff,vd); // gives internal compiler error
}
// We get an internal compiler error if the first parameter of a procedure is vector float
// and the second parameter has the same name as a global variable.
// gcc version 2.95.2 G4 (Cetia ID:00182)
// gcc -fvec bug.c
// bug.c: In function `main':
// bug.c:10: Internal compiler error:
// bug.c:10: Internal compiler error in `expand_expr', at expr.c:5791
// Please submit a full bug report.
// See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
/*
% cat bug.i
# 1 "bug.c"
void form(__vector float fa,float vd)
{
}
__vector float ff;
float vc,vd;
int main()
{ form(ff,vc);
form(ff,vd);
}
%
*/
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: