[libcxx] r255734 - Workaround nasty GCC bug that caused testsuite to hang

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 15 16:35:45 PST 2015


Author: ericwf
Date: Tue Dec 15 18:35:45 2015
New Revision: 255734

URL: http://llvm.org/viewvc/llvm-project?rev=255734&view=rev
Log:
Workaround nasty GCC bug that caused testsuite to hang

Modified:
    libcxx/trunk/include/utility

Modified: libcxx/trunk/include/utility
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/utility?rev=255734&r1=255733&r2=255734&view=diff
==============================================================================
--- libcxx/trunk/include/utility (original)
+++ libcxx/trunk/include/utility Tue Dec 15 18:35:45 2015
@@ -744,7 +744,9 @@ struct __make_integer_sequence
     static_assert(is_integral<_Tp>::value,
                   "std::make_integer_sequence can only be instantiated with an integral type" );
     static_assert(0 <= _Ep, "std::make_integer_sequence must have a non-negative sequence length");
-    typedef __make_integer_sequence_unchecked<_Tp, _Ep> type;
+    // Workaround GCC bug by preventing bad installations when 0 <= _Ep
+    // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68929
+    typedef __make_integer_sequence_unchecked<_Tp, 0 <= _Ep ? _Ep : 0> type;
 };
 
 #endif




More information about the cfe-commits mailing list