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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-12-01

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed reporter's analysis on x86_64 trunk. At -O2 the clone of h0
devirtualizes p->f1 to C3::f1 because decl_maybe_in_construction_p does not
recognize the global object as being under construction. Disabling
devirtualization (-fno-devirtualize) restores the expected 0 output.

Reply via email to