]> git.ipfire.org Git - thirdparty/gcc.git/commit
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 11:10:52 +0000 (12:10 +0100)
commitc4f1bbed3d0184955d39adf0be287667891baf83
tree2abc988b0b2913384e3d56223bde49f44e925814
parent258aedd9ad1ea4597528632e93dee860acc2eaf5
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.

(cherry picked from commit 917efba2dd4ff34336d0d3aa55285ae22503e4aa)
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