https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84779
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC|anlauf at gmx dot de |anlauf at gcc dot gnu.org --- Comment #13 from anlauf at gcc dot gnu.org --- I've come back to this PR again and spent a while trying to further narrow things down and to find the gcc options that make the code compile or fail. Minimal reproducer: complex function f2 (a) implicit none integer a logical e2 entry e2 (a) if (a > 0) then e2 = .true. else f2 = 45 endif end Basic command line: "gfortran -fdefault-integer-8", plus: these all lead to an ICE: ! -O1 ! -O1 -fno-tree-pre ! -O2 -fno-tree-pre but no ICE with: ! -O2 ! -O1 -ftree-pre ! -O2 -ftree-pre ! -O1 -fno-tree-sra ! -O2 -fno-tree-sra ! -O1 -fno-tree-sra -fno-tree-pre ! -O2 -fno-tree-sra -fno-tree-pre So is this now a frontend bug - what could it be? - or a middle-end issue?