[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


            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

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

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