[Bug c/124356] redundant initialization of inactive union member
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 4 08:12:25 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124356
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably an artifact of CTOR classification and "mostly zero" initializers.
IIRC that classification does not even try to "guess" which union member is
initialized.
More information about the Gcc-bugs
mailing list