[llvm-bugs] [Bug 26593] New: clang crashes on valid template instantiation (works wth gcc)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 11 23:42:00 PST 2016


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

            Bug ID: 26593
           Summary: clang crashes on valid template instantiation (works
                    wth gcc)
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: klemensbaum at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15890
  --> https://llvm.org/bugs/attachment.cgi?id=15890&action=edit
Test case: metaprogram to remove void from a parameter pack

The attached code causes clang to crash with a segmentation fault.

Commands used:
  time clang++ -std=c++11 -c test.cpp -o /dev/null -ftemplate-depth=10000
    -> result: crashes after 21s
  time g++ -std=c++11 -c test.cpp -o /dev/null -ftemplate-depth=10000
    -> result: compiles correctly within 0.6s

-- 
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/20160212/b2d23b8b/attachment.html>


More information about the llvm-bugs mailing list