This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70588] SIGBUS on a VLA larger than SIZE_MAX / 2
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 Apr 2016 15:50:43 +0000
- Subject: [Bug c++/70588] SIGBUS on a VLA larger than SIZE_MAX / 2
- Auto-submitted: auto-generated
- References: <bug-70588-4 at http dot gcc dot gnu dot org/bugzilla/>
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.).