[Bug libstdc++/101055] [11/12 Regression] should use __has_cpp_attribute() with __ prefixed/suffixed names

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 14 13:12:48 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101055

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |http://bugzilla.opensuse.or
                   |                            |g/show_bug.cgi?id=1187254

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. this fixes a problem when using libstdc++ 11.1 headers with Clang 9, where
the __has_cpp_attribute(no_unique_address) test was true, but the
[[__no_unique_address__]] attribute was not recognized and so was ignored,
resulting in layout changes for std::tuple.


More information about the Gcc-bugs mailing list