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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs