[PATCH C++] document order of C++ ctors and attribute constructor is unspecified

Martin Sebor msebor@gmail.com
Wed Mar 15 22:59:00 GMT 2017


In bug 52477 - Wrong initialization order?  attribute constructor
vs static data access, the reporter expects C++ objects with static
storage duration to have their ctors called in the same order as
those of functions declared with attribute constructor interleaved
with them.

In his comment on the bug Richard opines that relying on the order
is undefined.  The attached patch updates the manual to make this
clear.

Jason, can you please review it for 7.0?

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-52477.diff
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170315/ceb8d0c0/attachment.bin>


More information about the Gcc-patches mailing list