[llvm-bugs] [Bug 28519] New: __make_integer_seq type crashes clang in mangling template function

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 12 06:32:57 PDT 2016


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

            Bug ID: 28519
           Summary: __make_integer_seq type crashes clang in mangling
                    template function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: akotulski at fb.com
                CC: david.majnemer at gmail.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16727
  --> https://llvm.org/bugs/attachment.cgi?id=16727&action=edit
stack trace

Calling a function that adds __make_integer_seq<...> to its mangled name causes
a crash inside mangling code. I tested on clang trunk from July 8th (last rev
is r274885). r275047 fixes another problem with __make_integer_seq but it most
likely doesn't fix mangling crash.

Stack trace in attachment.

Code:

// compile in c++14 mode
#include<utility>                                                               

template <int N>                                                                
__make_integer_seq<std::integer_sequence, int, N> make(){}                      

int main() {                                                                    
  make<5>();                                                                    
}

-- 
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/20160712/b6bb0db6/attachment-0001.html>


More information about the llvm-bugs mailing list