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

--- Comment #4 from Barry Revzin <barry.revzin at gmail dot com> ---
(In reply to Jonathan Wakely from comment #2)
> Is this the union initializer change mentioned in the caveats of
> https://gcc.gnu.org/gcc-15/changes.html ?

It does appear that it's somehow related to the union initialization, yeah. The
specific style of initialization has all the impact
(https://compiler-explorer.com/z/fc9KEKxrx):

    constexpr storage()
        : 
        #ifdef PARENS
        empty_()
        #elifdef BRACES
        empty_{}
        #else
        #error
        #endif
    { }

With parens, the whole union is zeroed. With braces, it is not (and we get
nearly-identical generated code as in gcc 14.2).

Reply via email to