[Bug c/106853] compound literal storage duration

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 6 14:23:07 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

> if (0 != set_p1(&(struct ab){42, 42}))

Yes it is auto storage and the scope is only inside the condition statement as
specified by the standard.


More information about the Gcc-bugs mailing list