<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:zhaoshiz@codeaurora.org" title="zhaoshiz@codeaurora.org">zhaoshiz@codeaurora.org</a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Fixit missing when "sizeof type" found"
href="http://llvm.org/bugs/show_bug.cgi?id=16992">bug 16992</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>zhaoshiz@codeaurora.org
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Fixit missing when "sizeof type" found"
href="http://llvm.org/bugs/show_bug.cgi?id=16992#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Fixit missing when "sizeof type" found"
href="http://llvm.org/bugs/show_bug.cgi?id=16992">bug 16992</a>
from <span class="vcard"><a class="email" href="mailto:zhaoshiz@codeaurora.org" title="zhaoshiz@codeaurora.org">zhaoshiz@codeaurora.org</a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>