[libcxx-commits] [PATCH] D65667: [libcxx] Early-initialize error_category singletons
Hubert Tong via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 3 09:40:52 PDT 2019
hubert.reinterpretcast added a comment.
In D65667#1613503 <https://reviews.llvm.org/D65667#1613503>, @mclow.lists wrote:
> @EricWF pointed out to me that it is UB to access standard library objects of static storage duration from an atexit handler: http://eel.is/c++draft/basic.start.term#6
I don't read the paragraph that way. The access during evaluation of an atexit handler must, in the absence of multithreading, happen before "completion of destruction of objects with static storage duration and execution of std::atexit registered functions".
CHANGES SINCE LAST ACTION
More information about the libcxx-commits