[cfe-dev] [libc++] r160604 appears to have broken libc++ on linux
Andrew C. Morrow
andrew.c.morrow at gmail.com
Tue Jul 24 14:19:11 PDT 2012
+cfe-dev
On Tue, Jul 24, 2012 at 5:17 PM, Andrew C. Morrow
<andrew.c.morrow at gmail.com> wrote:
> On Tue, Jul 24, 2012 at 5:09 PM, Howard Hinnant <hhinnant at apple.com> wrote:
>> 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
>>
>
> I just tried it out and my little test passes now. So this looks very
> promising! I will try getting the libc++abi and libc++ unit tests
> going next.
>
> Thanks,
> Andrew
More information about the cfe-dev
mailing list