libstdc++: Use reserved name for attribute [PR101055]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 Jun 2021 09:58:15 +0000 (10:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 14 Jun 2021 10:53:29 +0000 (11:53 +0100)
commit917efba2dd4ff34336d0d3aa55285ae22503e4aa
tree143cc46d9c9bef9b33d14e137da7fb460bf0ae9e
parent08ce1f4c5091b80b680d15c53a17237544a3cca8
libstdc++: Use reserved name for attribute [PR101055]

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.
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc