[LLVMbugs] [Bug 7038] New: ast-dump crash for inline-declared structs in other structs

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 4 02:59:30 PDT 2010


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

           Summary: ast-dump crash for inline-declared structs in other
                    structs
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sebastian.redl at getdesigned.at
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The following test program crashes -ast-dump mode:

struct foo {
  struct bar *ptr;
};

The problem is that struct bar is not a member (for C compatibility, it lives
in the global context), but its lexical context is still struct foo. This means
that the AST printer will encounter it and try to print its access specifier.
But, not being a member, it has none, which hits an assertion.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list