[LLVMbugs] [Bug 6484] New: Improve diagnostic when there is an extraneous '}'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 3 13:54:42 PST 2010


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

           Summary: Improve diagnostic when there is an extraneous '}'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: quality-of-implementation
          Severity: enhancement
          Priority: P5
         Component: parser
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu


terfin:clang dgregor$ cat t2.c
void foo() { }
}

terfin:clang dgregor$ clang t2.c
t2.c:2:1: error: expected external declaration
}
^
1 diagnostic generated.

We can do better, with something like "extraneous closing brace ('}') at the
top level".

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