[LLVMbugs] [Bug 16992] Fixit missing when "sizeof type" found
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 13 12:49:29 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=16992
zhaoshiz at codeaurora.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |zhaoshiz at codeaurora.org
Resolution|FIXED |---
--- Comment #3 from zhaoshiz at codeaurora.org ---
The following test case should not fail, it seems the parse cuts off T from
expression T().
$ cat sizeof.cpp
int ieq(int a, int b) {
if (a == b)
return 0;
else return 1;
}
int main(int argc, char *argv[])
{
// where simple-type-specifier is type-name
typedef int T;
int i = T(1);
i = T();
return ieq(sizeof i, sizeof T());
}
$ clang++ -S -O2 -marm sizeof.cpp
sizeof.cpp:15:30: error: expected parentheses around type name in sizeof
expression
return ieq(sizeof i, sizeof T());
^
( )
1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131213/af05f3cb/attachment.html>
More information about the llvm-bugs
mailing list