[Bug c/35751] New: ICE with invalid variable after #pragma omp parallel
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 28 22:11:00 GMT 2008
The following invalid code snippet triggers an ICE since GCC 4.2.0:
=================================
void foo(int i)
{
extern int a[i];
#pragma omp parallel
a[0] = 0;
}
=================================
bug.c: In function 'foo':
bug.c:3: error: object with variably modified type must have no linkage
bug.c:3: error: storage size of 'a' isn't constant
bug.c:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
Summary: ICE with invalid variable after #pragma omp parallel
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored, openmp
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35751
More information about the Gcc-bugs
mailing list