c/10059: internal compiler error, scope problem?

martin.green@uk.thalesgroup.com martin.green@uk.thalesgroup.com
Thu Mar 13 14:16:00 GMT 2003


>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:



More information about the Gcc-bugs mailing list