[patch] libstdc++/65352 fix ubsan errors in std::array<T, 0>
Jonathan Wakely
jwakely@redhat.com
Thu May 28 12:03:00 GMT 2015
Unsurprisingly ubsan doesn't like referencing a null pointer.
With this change __array_traits::_S_ref is only used to access an
element, which is invalid for std::array<T, 0> anyway.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 3069 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150528/9d4b6203/attachment.bin>
More information about the Gcc-patches
mailing list