[Bug c++/69517] SEGV on a VLA with excess initializer elements

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 10 13:54:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69517

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.0                         |---
            Summary|[7 regression] SEGV on a    |SEGV on a VLA with excess
                   |VLA with excess initializer |initializer elements
                   |elements                    |

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't think this is a regression (it is not a regression compared to GCC
versions that didn't implement the C++ feature that got removed from the C++
standard), nor a bug, there is no ICE, the program invokes undefined behavior,
so anything including SIGSEGV happens.


More information about the Gcc-bugs mailing list