[Bug middle-end/68270] [MPX] Common pattern for variable sized data clashes with MPX bound checks
peter at lekensteyn dot nl
gcc-bugzilla@gcc.gnu.org
Fri Sep 2 21:31:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68270
Peter Wu <peter at lekensteyn dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter at lekensteyn dot nl
--- Comment #2 from Peter Wu <peter at lekensteyn dot nl> ---
GCC 6.2.1 is still affected by this. In C99 we can get away with flexible array
members, but this feature is unfortunately not defined in the C++
specification.
The idiom with an array of length 1 is quite common, is it possible to detect
that situation and relax the boundaries?
More information about the Gcc-bugs
mailing list