This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70126] VLA accepted in sizeof and typedef, allowing integer overflow
- From: "fw at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Mar 2016 18:24:21 +0000
- Subject: [Bug c++/70126] VLA accepted in sizeof and typedef, allowing integer overflow
- Auto-submitted: auto-generated
- References: <bug-70126-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70126
--- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> ---
There seems to be a fundamental incompatibility here with supporting the GNU CC
VLA extension and this new (and apparently dead) C++ VLA specification.
I wonder how much existing G++ code applies sizeof to a VLA type (as opposed to
a VLA object, which seems to be allowed under the C++ proposal).