https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128826
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2026-11-18
Status|RESOLVED |NEW
Resolution|INVALID |---
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Drea Pinski from comment #7)
> The padding bits need to be zero'ed initialized with T(). See
> https://eel.is/c++draft/dcl.init#general-6 .
That doesn't say that i(5) has to initialize the entire union, it says that i
itself is zero-initialized.
I think this is a bug.