[LLVMbugs] [Bug 3972] New: Poor diagnostic with missing ')'
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Apr 10 13:04:12 PDT 2009
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: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
We can do better:
--
ddunbar at 67-218-103-134:tmp$ cat t.c
int g0(int);
int f0(void) { return g0(g0(1); }
ddunbar at 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.
More information about the llvm-bugs
mailing list