[LLVMbugs] [Bug 23661] [3.5] Crash when creating tuple with at least 5 elements using libc++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 13 10:22:36 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23661

Meador Inge <meadori at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |meadori at gmail.com
         Resolution|---                         |FIXED

--- Comment #2 from Meador Inge <meadori at gmail.com> ---
This compiles fine with Clang trunk (3.7.0):

$ cat -b pr23661.cpp 
     1    #include <tuple>
     2    
     3    template<typename ...T>
     4    std::tuple<T...> tup(T ...things) {
     5      return std::tuple<T...>(things...);
     6    }
     7    
     8    int main() {
     9    #ifndef CRASH
    10      tup(1, 2, 3, 4); // Ok
    11    #else
    12      tup(1, 2, 3, 4, 5); // Crash!
    13    #endif
    14    }
$ ./bin/clang++ --version
clang version 3.7.0 (trunk 239652) (llvm/trunk 239650)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
$ ./bin/clang++ -std=c++11 -stdlib=libc++ -DCRASH pr23661.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150613/f0d480b3/attachment.html>


More information about the llvm-bugs mailing list