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++/70126] VLA accepted in sizeof and typedef, allowing integer overflow


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).

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