<p dir="ltr"><br>
On 30 May 2014 05:36, "Nico Weber" <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br>
><br>
> (Filed <a href="http://llvm.org/bugs/show_bug.cgi?id=19897">http://llvm.org/bugs/show_bug.cgi?id=19897</a> for clang not diagnosing the missing constexpr.)</p>
<p dir="ltr">This is a GCC bug, not a Clang bug. The code was correct without the change. (Though it seems reasonable for GCC compatibility)</p>
<p dir="ltr">> On Fri, May 30, 2014 at 2:09 PM, Nico Weber <<a href="mailto:nicolasweber@gmx.de">nicolasweber@gmx.de</a>> wrote:<br>
>><br>
>> Author: nico<br>
>> Date: Fri May 30 07:09:47 2014<br>
>> New Revision: 209888<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=209888&view=rev">http://llvm.org/viewvc/llvm-project?rev=209888&view=rev</a><br>
>> Log:<br>
>> Add a _LIBCPP_CONSTEXPR that was missed in r170026.<br>
>><br>
>> (clang doesn't complain about this, but gcc does. This is necessary for a<br>
>> follow-up patch that will enable _LIBCPP_CONSTEXPR for gcc.)<br>
>><br>
>> Modified:<br>
>> libcxx/trunk/include/limits<br>
>><br>
>> Modified: libcxx/trunk/include/limits<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/limits?rev=209888&r1=209887&r2=209888&view=diff">http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/limits?rev=209888&r1=209887&r2=209888&view=diff</a><br>
>> ==============================================================================<br>
>> --- libcxx/trunk/include/limits (original)<br>
>> +++ libcxx/trunk/include/limits Fri May 30 07:09:47 2014<br>
>> @@ -768,7 +768,7 @@ template <class _Tp><br>
>> template <class _Tp><br>
>> _LIBCPP_CONSTEXPR const int numeric_limits<const volatile _Tp>::digits10;<br>
>> template <class _Tp><br>
>> - const int numeric_limits<const volatile _Tp>::max_digits10;<br>
>> + _LIBCPP_CONSTEXPR const int numeric_limits<const volatile _Tp>::max_digits10;<br>
>> template <class _Tp><br>
>> _LIBCPP_CONSTEXPR const bool numeric_limits<const volatile _Tp>::is_signed;<br>
>> template <class _Tp><br>
>><br>
>><br>
>> _______________________________________________<br>
>> cfe-commits mailing list<br>
>> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
><br>
</p>