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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Isn't this undefined since you require 'test' to be constructed before 'sample'
but the order of global CTORs is undefined between translation units?

IIRC there's a duplicate bugreport with further suggetions as to how to
try to mimic non-LTO behavior here (sort CTORs in "link order").

Reply via email to