Bug 40047 - [4.5 Regression] ICE for libgomp.c++/task-4.C: type mismatch in indirect reference
Summary: [4.5 Regression] ICE for libgomp.c++/task-4.C: type mismatch in indirect refe...
Status: RESOLVED DUPLICATE of bug 39958
Alias: None
Product: gcc
Classification: Unclassified
Component: libgomp (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2009-05-06 15:20 UTC by Tobias Burnus
Modified: 2009-05-06 15:56 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2009-05-06 15:20:53 UTC
Compiling "libgomp.c++/task-4.C" with "g++" is successful, but compiling it with "g++ -fopenmp" gives:

libgomp.c++/task-4.C: In function 'void foo(int, int)':
libgomp.c++/task-4.C:37: error: type mismatch in indirect reference
int[0:D.2193]

int[0:<<< error >>>]

D.2218 = &(*q.1)[0];

libgomp.c++/task-4.C:37: error: type mismatch in indirect reference
int[0:D.2173]

int[0:<<< error >>>]

D.2219 = &(*p.0)[0];

libgomp.c++/task-4.C:37: internal compiler error: verify_stmts failed


(It might be not a true regression but a side effect of stricter type checking in 4.5.)
Comment 1 Richard Biener 2009-05-06 15:56:37 UTC

*** This bug has been marked as a duplicate of 39958 ***