[libcxx-commits] [PATCH] D65667: [libcxx] Early-initialize error_category singletons

Hubert Tong via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 6 15:09:48 PDT 2019


hubert.reinterpretcast added a comment.

In D65667#1617183 <https://reviews.llvm.org/D65667#1617183>, @mclow.lists wrote:

> Hubert - I'm not following what you're saying.  
>  Where did `error_code` come from? As far as I can tell, your comment is the first mention of `error_code` in this conversation.


Yes, you're correct it is. We encountered this lifetime issue in an application where the reference to the out-of-lifetime object was the `cat_` exposition-only member of `error_code`. The status quo with libc++ is that `error_code`s are likely unsafe to use during program termination.


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65667/new/

https://reviews.llvm.org/D65667





More information about the libcxx-commits mailing list