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

           Summary: repeated structure declaration crashes clang
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


The following code crashes clang:

void foo() {
  struct xpto;
  struct xpto;
}

The crash happens because both stmts point to the same decl. When destroying
the stmts, both will free the same decl, and thus crashing.
This may get fixed with Ted's proposal for struct stuff, but here's one more
test case.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to