http://llvm.org/bugs/show_bug.cgi?id=22251
Bug ID: 22251
Summary: low quality error for unknown type name that could
plausibly also be a forward declaration
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Testcase:
void f() {
struct timespec ts;
}
$ clang y.c
y.c:2:19: error: variable has incomplete type 'struct timespec'
struct timespec ts;
^
y.c:2:10: note: forward declaration of 'struct timespec'
struct timespec ts;
^
1 error generated.
We should at least suppress the note if not change the error text.
--
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