[LLVMbugs] [Bug 15551] New: Short code causes segfault with large -ftemplate-depth

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 20 07:55:18 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: antoinep92 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130320/59ed68da/attachment.html>


More information about the llvm-bugs mailing list