[Bug c++/95417] Static storage duration objects that are constant initialized should be destroyed after the destruction of dynamically initialized object.

okannen at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 16 16:00:14 GMT 2020


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

Olivier Kannengieser <okannen at gmail dot com> changed:

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

--- Comment #3 from Olivier Kannengieser <okannen at gmail dot com> ---
I have just found a paragraph in the standard that specifies that GCC behavior
is standard compliant, [basic.start.term]/3:

 "If an object is initialized statically, the object is destroyed in the same
order as if the object was dynamically initialized."


More information about the Gcc-bugs mailing list