[LLVMbugs] [Bug 8581] New: Duplicate diagnostic initializing a local variable of type 'void'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 10 02:23:38 PST 2010
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: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list