[LLVMbugs] [Bug 6423] New: Improve 'missing ;' error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 25 11:22:10 PST 2010


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

           Summary: Improve 'missing ;' error
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: parser
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


This should emit an error telling that we need a ; after the struct:

struct foo {
}
typedef int x;

instead we get:

t.c:6:9: error: cannot combine with previous 'struct' declaration specifier
typedef int x;
        ^

which is obviously dumb.  Bad clang!

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