diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-10-19 17:57:14 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-10-19 18:07:21 +0100 |
commit | fc77484c4a4feb308c64371233cb65b280333953 (patch) | |
tree | 3d758ef54b7fb06bab4761bf603a98c0b744ed2a | |
parent | aa6d2be1e3455a5f0818d5bd6a44b15a55a39df5 (diff) | |
download | gcc-fc77484c4a4feb308c64371233cb65b280333953.zip gcc-fc77484c4a4feb308c64371233cb65b280333953.tar.gz gcc-fc77484c4a4feb308c64371233cb65b280333953.tar.bz2 |
libstdc++: Use reserved name for C++20 attribute
Although the compiler supports the [[no_unique_address]] attribute, it's
not a reserved name prior to C++20, so we can't use it in std::tuple.
Use [[__no_unique_address__]] instead.
libstdc++-v3/ChangeLog:
* include/std/tuple (_Head_base<Idx, Head, true>): Use reserved
form of __no_unique_address__ attribute because
no_unique_address is not reserved prior to C++20.
-rw-r--r-- | libstdc++-v3/include/std/tuple | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index 11ad199..adfd621 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static constexpr const _Head& _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } - [[no_unique_address]] _Head _M_head_impl; + [[__no_unique_address__]] _Head _M_head_impl; }; #else template<size_t _Idx, typename _Head> |