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

           Summary: Duplicate / confusing diagnostic
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Given

   int (x), ;

clang gives

/tmp/foo.c:1:10: error: expected identifier or '('
int (x), ;
         ^
/tmp/foo.c:1:1: error: declarator requires an identifier
int (x), ;
^~~
2 diagnostics generated.

The second diagnostic is confusing and / or redundant.


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