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.