The attached routine (scanbufr.f) draws the following ICE when compiled with -c -O3 -flto:
scanbufr.f90: In function 'scanbufr_': scanbufr.f90:3:0: internal compiler error: in gimple_cond_get_ops_from_tree, at gimple.c:417 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Compiling with -O1 instead of -O3 completes normally. -- Summary: ICE: in gimple_cond_get_ops_from_tree, at gimple.c:417 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: toon at moene dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41654