We ICE there because we don't fold CONST_DECLs substituted by inlining. ./f951 -quiet -O2 -finline-functions zheev.min7.f -fwhole-file zheev.min7.f: In function 'zlarfg': zheev.min7.f:1:0: internal compiler error: in extract_component, at tree-complex.c:625 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
SUBROUTINE ZLARFG( ALPHA ) ALPHA = ZLADIV( DCMPLX( 1.0D+0 ) ) END COMPLEX*16 FUNCTION ZLADIV( X ) COMPLEX*16 X CALL DLADIV( DBLE( X ), DIMAG( X ) ) END reduced from two SPEC 2006 testcases that ICE this way on the LTO branch. -- Summary: ICE in extract_component, at tree-complex.c:625 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40999