Bug 42710 - [4.5 Regression] ICE in first_imm_use_stmt, at tree-flow-inline.h:1081
Summary: [4.5 Regression] ICE in first_imm_use_stmt, at tree-flow-inline.h:1081
Status: RESOLVED DUPLICATE of bug 42604
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2010-01-12 16:09 UTC by Matthias Klose
Modified: 2010-01-13 10:06 UTC (History)
5 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed:

preprocessed source (136.99 KB, application/x-gzip)
2010-01-12 16:24 UTC, Matthias Klose
reduced testcase (896 bytes, text/plain)
2010-01-12 16:38 UTC, Richard Biener

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2010-01-12 16:09:57 UTC
seen with trunk 20100107:

build succeeds with either -O2, or without the -ffast-math

$ g++ -c -g -O3 -ffast-math dcraw.ii 
dcraw.cc: In member function 'void DCRaw::convert_to_rgb()':
dcraw.cc:8096:6: internal compiler error: in first_imm_use_stmt, at tree-flow-inline.h:1081
Please submit a full bug report,
with preprocessed source if appropriate.
Comment 1 Matthias Klose 2010-01-12 16:24:04 UTC
Created attachment 19560 [details]
preprocessed source
Comment 2 Richard Biener 2010-01-12 16:30:41 UTC
Also works without -g.  Reducing.
Comment 3 Richard Biener 2010-01-12 16:38:51 UTC
Created attachment 19561 [details]
reduced testcase
Comment 4 Richard Biener 2010-01-12 16:40:39 UTC
Seems to work on current trunk (fixed between revs 155679 (failing) and
155834 (ok)).
Comment 5 Jakub Jelinek 2010-01-13 10:06:29 UTC
I believe this is a dupe of PR42604, at least the testcase in there comes from
which is also ICE on dcraw.cc in the same function.

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