http://llvm.org/bugs/show_bug.cgi?id=15551

            Bug ID: 15551
           Summary: Short code causes segfault with large -ftemplate-depth
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 10205
  --> http://llvm.org/bugs/attachment.cgi?id=10205&action=edit
Code causing segault with large -ftemplate-depth

Attached code compiled with clang++ -Wall -std=c++11 -c -ftemplate-depth=65536
causes clang 3.2 to segfault.

The attached code is obviously a little demanding on the compiler and segfault
only occurs with large -ftemplate-depth, but still a segfault is not nice and
might be triggered by more mundane code?

Note: gcc 4.8 has the same behavior, icc doesn't segfault :\

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to