http://llvm.org/bugs/show_bug.cgi?id=19269
Bug ID: 19269
Summary: Missing warning for "char* foo, bar;"
Product: clang
Version: 3.4
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
There is currently no warning for declaring two variables of pointer type in
the same declaration where the user forgets the second asterisk.
Example:
extern int foo(int);
extern int foo(int*);
int bar() {
char* a, b;
return foo(a) + foo(b);
}
Clang should emit a warning that b was probably supposed to be a pointer.
--
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