http://llvm.org/bugs/show_bug.cgi?id=16992
Bug ID: 16992
Summary: Fixit missing when "sizeof type" found
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Consider:
int x = sizeof int;
This is wrong given the C++ grammar:
unary-expression:
sizeof unary-expression
sizeof ( type-id )
sizeof ... ( identiļ¬er )
we should give a fixit suggesting parenthesis around int. There are
(non-conformant) compilers that don't require the parenthesis, this fixit would
probably be useful to them.
--
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