[Bug tree-optimization/124627] [15/16 Regression] ICE with LTO with -O1/-O2/-O3 + -g

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 25 06:06:57 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124627

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
            Summary|ICE with LTO with           |[15/16 Regression] ICE with
                   |-O1/-O2/-O3 + -g            |LTO with -O1/-O2/-O3 + -g
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-03-25
      Known to work|                            |14.2.1
   Target Milestone|---                         |15.3
     Ever confirmed|0                           |1

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It used to work with `gcc version 16.0.0 20250705`.

`gcc a.c b.c -O1 -g -flto` is all is needed.

Note removing `  b = d;` seems to make the ICE go away which seems odd but that
causes a debug statement to show up.


More information about the Gcc-bugs mailing list