<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:ch3root@openwall.com" title="Alexander Cherepanov <ch3root@openwall.com>"> <span class="fn">Alexander Cherepanov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Invalid C accepted: flexible array member in struct with only unnamed member"
href="https://llvm.org/bugs/show_bug.cgi?id=28407">bug 28407</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;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Invalid C accepted: flexible array member in struct with only unnamed member"
href="https://llvm.org/bugs/show_bug.cgi?id=28407#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Invalid C accepted: flexible array member in struct with only unnamed member"
href="https://llvm.org/bugs/show_bug.cgi?id=28407">bug 28407</a>
from <span class="vcard"><a class="email" href="mailto:ch3root@openwall.com" title="Alexander Cherepanov <ch3root@openwall.com>"> <span class="fn">Alexander Cherepanov</span></a>
</span></b>
<pre>Now, this testcase is diagnosed as "test.c:5:9: error: flexible array member
'a' not allowed in otherwise empty struct". The message is wrong as the struct
is not otherwise empty -- it contains an unnamed field. Not sure if a separate
message for this case is worth the trouble, maybe something like "flexible
array member 'a' not allowed in struct without other named member" could do?
Should I file a separate PR for this?</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>