[committed] libstdc++: Use reserved name for attribute [PR101055]

Jonathan Wakely jwakely@redhat.com
Mon Jun 14 13:06:40 GMT 2021


On 14/06/21 11:54 +0100, Jonathan Wakely wrote:
>The no_unique_address attribute is not a reserved name until C++20, so
>to use it in C++11/14/17 modes we should use the __no_unique_address_
>form. We already use that form when using the attribute, but not in the
>__has_cpp_attribute check.
>
>libstdc++-v3/ChangeLog:
>
>	PR libstdc++/101055
>	* include/std/tuple: Use reserved form of attribute name.
>	* testsuite/17_intro/headers/c++2011/all_attributes.cc: Add
>	check for no_unique_address.
>	* testsuite/17_intro/headers/c++2014/all_attributes.cc:
>	Likewise.
>	* testsuite/17_intro/headers/c++2017/all_attributes.cc:
>	Likewise.

And this ensures the modified C++17 test doesn't fail when using a
newer -std option.

Tested powerpc64le-linux. Committed to trunk.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1224 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210614/9c873fa1/attachment.bin>


More information about the Gcc-patches mailing list