[llvm-bugs] [Bug 47834] clang crashes on a testcase with a local array of size based on a non-const integer variable

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 27 11:47:07 PDT 2021


Aaron Ballman <aaron at aaronballman.com> changed:

           What    |Removed                     |Added
         Resolution|---                         |WORKSFORME
                 CC|                            |aaron at aaronballman.com
             Status|NEW                         |RESOLVED

--- Comment #4 from Aaron Ballman <aaron at aaronballman.com> ---
I can no longer reproduce this issue on Clang trunk because Clang now diagnoses
an attempt to initialize a VLA. C prohibits the initialization of VLAs in
6.7.9p3 ("The type of the entity to be initialized shall be an array of unknown
size or a complete object type that is not a variable length array type."), and
Clang now carries this restriction over to C++.

If you're still able to reproduce this crash with Clang trunk, please reopen
the bug with additional details on how to reproduce.

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/20211027/cfb0d1ad/attachment.html>

More information about the llvm-bugs mailing list