http://llvm.org/bugs/show_bug.cgi?id=8581
Summary: Duplicate diagnostic initializing a local variable of
type 'void'
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This testcase:
void *a;
int main()
{
void b = a;
}
Produces the same error twice:
test.cpp:4:8: error: variable has incomplete type 'void'
void b = a;
^
test.cpp:4:8: error: variable has incomplete type 'void'
2 errors generated.
A single error would be preferable. A fixit adding the * would be even better!
--
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