I get an ICE when compiling the following code with the -fbounds-check option:
program emptyif implicit none integer i,K(4) if (K(i)==0) then ! do absolutely nothing end if end program the error message is: emptyif.f90: In function MAIN__: emptyif.f90:6: internal compiler error: in annotate_all_with_locus, at gimplify.c:806 this error only occurs under the following circumstances: * GCC version 4.3 (4.1 and 4.2 work) * compilation with -fbounds-check option * if statement is "empty" (contains no further statements/does nothing) * an array expression is involved I noticed this bug in rev. 126726 and I suspect it's a relatively new regression, probably introduced during the last week (or two), because I think around July 9 I was still able to compile code like the above without errors. -- Summary: [4.3 Regression] ICE for array expression in empty if statement, compiled with -fbounds-check Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jaydub66 at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32813