[LLVMbugs] [Bug 15220] New: Segfault on dumping AST of code using a template friend class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 8 22:28:24 PST 2013


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

            Bug ID: 15220
           Summary: Segfault on dumping AST of code using a template
                    friend class
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fakju666 at o2.pl
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9988
  --> http://llvm.org/bugs/attachment.cgi?id=9988&action=edit
Testcase

This bug prevents me from generating ASTs for a lot of code. The attached
(minimized) testcase causes clang to segfault when invoked with:

clang++ -cc1 -std=gnu++0x -ast-dump test.cpp >test.ast

The resulting ast file will be 1.4 GB big and indicates that the AST dumping
code goes into an infinite loop. Possibly related to bug 12292 or bug 7308?

Tested using clang version 3.3 (http://llvm.org/git/clang.git
992c59247497ba38e904142f9ac3028c3e1874af) (http://llvm.org/git/llvm.git
882b9276cb3a19ecc4fd307d8c0acd17574570a0).

-- 
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/20130209/6f9972dc/attachment.html>


More information about the llvm-bugs mailing list