[LLVMbugs] [Bug 3980] New: clang aborts on tentative definition with incomplete type

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 13 11:43:14 PDT 2009


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

           Summary: clang aborts on tentative definition with incomplete
                    type
           Product: clang
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: T.P.Northover at sms.ed.ac.uk
                CC: llvmbugs at cs.uiuc.edu


When processing a tentative definition with a currently incomplete type, clang
tries to emit the code immediately and fails.
E.g.
struct foo x;
struct foo { int a; };

It should be equivalent to a definition with the type as known at the end of
the file (C99 6.9.2p2 I think).

Daniel Dunbar made a brief comment on the problem at
http://llvm.org/bugs/show_bug.cgi?id=3461#c5.


-- 
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