[llvm-bugs] [Bug 44406] file-scoped variably modified type erroneously supported in C as a GNU extension (GCC provides the extension only for C++)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 16 14:40:31 PDT 2020


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
 Fixed By Commit(s)|                            |552c6c2328723a248c2b4d2765f
                   |                            |75d49129dff20

--- Comment #6 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The issues in comment#3 and comment#4 are fixed; we now follow GCC's behavior
in most regards.

Contrary to comment#0, we still do fold VLAs to constant arrays in struct
members where GCC does not. However, that seems justifiable: GCC supports VLAs
as struct members and Clang does not, and folding VLAs to constant arrays
allows us to accept at least some of the cases that GCC accepts here.

-- 
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/20201016/e045728f/attachment.html>


More information about the llvm-bugs mailing list