[cfe-dev] [libc++] r160604 appears to have broken libc++ on linux
Howard Hinnant
hhinnant at apple.com
Tue Jul 24 14:09:33 PDT 2012
On Jul 24, 2012, at 4:26 PM, "Andrew C. Morrow" <andrew.c.morrow at gmail.com> wrote:
> Yes, constexpr is turned on.
Ok, I'm testing a solution that looks like this:
Index: include/__locale
===================================================================
--- include/__locale (revision 160055)
+++ include/__locale (working copy)
@@ -119,7 +119,7 @@
static int32_t __next_id;
public:
- _LIBCPP_INLINE_VISIBILITY id() {}
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR id() :__id_(0) {}
private:
void __init();
void operator=(const id&); // = delete;
Could you test that out as well? My hope is that this will force the id() constructor to be constructed at compile time.
Thanks,
Howard
More information about the cfe-dev
mailing list