[PATCH] libstdc++: Add a __nonnnull__ attribute to std::string's _CharT* constructor

Ville Voutilainen ville.voutilainen@gmail.com
Sun Jun 28 11:01:18 GMT 2020


On Sun, 28 Jun 2020 at 13:56, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
>
> 2020-06-28  Ville Voutilainen  <ville.voutilainen@gmail.com>
>
>     Add a __nonnnull__ attribute to std::string's _CharT* constructor
>     * include/bits/basic_string.h (string(_CharT*, const _Alloc&)):
>     Add a __nonnull__ attribute.
>     * testsuite/21_strings/basic_string/cons/char/nonnull.cc: New.
>     * testsuite/21_strings/basic_string/cons/wchar_t/nonnull.cc: Likewise.


Hmm, let's use dg-additional-options here too, and axe the pointless
-std=gnu++11.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string-null.diff
Type: text/x-patch
Size: 3447 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200628/0f64e30b/attachment.bin>


More information about the Gcc-patches mailing list