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

           Summary: Poor diagnostic with missing ')'
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


We can do better:
--
ddun...@67-218-103-134:tmp$ cat t.c
int g0(int);
int f0(void) { return g0(g0(1); }
ddun...@67-218-103-134:tmp$ clang /tmp/t.c -fsyntax-only
/tmp/t.c:2:31: error: expected ')'
int f0(void) { return g0(g0(1); }
                              ^
/tmp/t.c:2:25: note: to match this '('
int f0(void) { return g0(g0(1); }
                        ^
/tmp/t.c:2:23: warning: incompatible pointer to integer conversion returning
'int (int)', expected 'int'
int f0(void) { return g0(g0(1); }
                      ^~
3 diagnostics generated.
--


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