https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107504
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Component|debug |c++ Keywords| |wrong-debug Status|UNCONFIRMED |NEW Last reconfirmed| |2022-11-01 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- [/app/example.cpp:15:22] _2 = [/app/example.cpp:15:22] D.2776.j; [/app/example.cpp:18:3] if (_2 != 1) goto <D.2822>; else goto <D.2823>; Most likely because the COMPONENT_REF has a line # on it: void * x [value-expr: [/app/example.cpp:15:22] D.2776.i]; int y [value-expr: [/app/example.cpp:15:22] D.2776.j]; Seems like if we remove that, this would work.