This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70588] SIGBUS on a VLA larger than SIZE_MAX / 2


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6 regression] SIGBUS on  |SIGBUS on a VLA larger than
                   |a VLA larger than SIZE_MAX  |SIZE_MAX / 2
                   |/ 2                         |

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also, I kind of don't understand why is it so important to diagnose SIZE_MAX /
2 VLAs, when already significantly smaller VLAs will not really work on most
systems (say with most Linux defaults usually something over 10MB or so
already).
As the VLAs in C++ are just an extension, IMHO it is better to keep it closer
to the C VLAs (not throw etc.).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]