http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52651
Bug #: 52651 Summary: Fortran testsuite ICEs with -flto Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org CC: pa...@gcc.gnu.org Depends on: 45586 Blocks: 51765 For another gfortran LTO failure, see 4.8 pseudo-regression PR fortran/45586 comment 63 (alias PR 52516). That failure is related to TYPE_CANONICAL and "restrict" vs. not "restrict". As pointed out in PR 51765, there are the following failures when running the testsuite with LTO: make check-gfortran RUNTESTFLAGS="--target_board=unix/-flto" Note: To see the ICEs, one has to have a build with checking enabled. (That's the default on the trunk, while release branches [and some GFortranBinaries trunk builds] use --enable-checking=release. There is no ICE with --enable-checking=release, but as the bug might cause alias-analysis issues, it could lead to wrong code on the branches.) FAIL: gfortran.dg/alloc_comp_assign_2.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_assign_3.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_assign_4.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_bounds_1.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_constructor_1.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_constructor_2.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_constructor_3.f90 -O0 (internal compiler error) FAIL: gfortran.dg/alloc_comp_constructor_4.f90 -O0 (internal compiler error) FAIL: gfortran.dg/class_array_7.f03 -O0 (internal compiler error) FAIL: gfortran.dg/class_to_type_1.f03 -O0 (internal compiler error) FAIL: gfortran.dg/extends_4.f03 -O0 (internal compiler error) FAIL: gfortran.dg/pr43808.f90 -O0 (internal compiler error) FAIL: gfortran.dg/type_to_class_1.f03 -O0 (internal compiler error)