[llvm-bugs] [Bug 28407] Invalid C accepted: flexible array member in struct with only unnamed member

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 4 11:24:48 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28407

Alexander Cherepanov <ch3root at openwall.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Alexander Cherepanov <ch3root at openwall.com> ---
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?

-- 
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/20160704/929b5d0a/attachment.html>


More information about the llvm-bugs mailing list