https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125458
--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Mikael Morin from comment #10) > Maybe just remove the simplification during matching? > Like this (multiplication and division only, but you get the idea): That does look promising. Of course, regressions lurk everywhere, but this is the only one I found in the gcc subtree running "make check": FAIL: gfortran.dg/gomp/declare-variant-7.f90 -O (internal compiler error: in gfc_conv_constant_to_tree, at fortran/trans-const.cc:310) FAIL: gfortran.dg/gomp/declare-variant-7.f90 -O (test for errors, line 34) FAIL: gfortran.dg/gomp/declare-variant-7.f90 -O (test for errors, line 40) FAIL: gfortran.dg/gomp/declare-variant-7.f90 -O (test for excess errors)
