[LLVMbugs] [Bug 3981] New: Recursive structure def. could use better error diagnostics messages
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Apr 13 12:26:42 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3981
Summary: Recursive structure def. could use better error
diagnostics messages
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
Consider the following C source code:
struct foo;
struct foo { struct foo f; };
The follow error output is produced:
s.c:2:25: error: field has incomplete type 'struct foo'
struct foo { struct foo f; };
^
s.c:2:8: note: definition of 'struct foo' is not complete until the closing '}'
struct foo { struct foo f; };
^
2 diagnostics generated.
These diagnostic messages could be improved. Particularly, the second message
is spurious.
On an unrelated note, perhaps "Diagnostics" should be a category in Bugzilla to
report bugs against...
--
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