https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107187
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:619b1f8b85d54930c17c608698658ac7cd45e5f1 commit r17-2300-g619b1f8b85d54930c17c608698658ac7cd45e5f1 Author: Jakub Jelinek <[email protected]> Date: Fri Jul 10 09:13:37 2026 +0200 c++: Don't advertise __has_cpp_attribute (gnu::trivial_abi) I've noticed we advertise __has_cpp_attribute (gnu::trivial_abi) and __has_attribute (gnu::trivial_abi). It is true we have gnu::trivial_abi in the tables, but solely to give errors on those when using the gnu:: scope and to suggest [[clang::trivial_abi]] or __attribute__((trivial_abi)). 2026-07-10 Jakub Jelinek <[email protected]> PR c++/107187 * c-lex.cc (c_common_has_attribute): Don't advertise __has_cpp_attribute (gnu::trivial_abi) in C++. * g++.dg/cpp0x/attr-trivial_abi8.C: New test. Reviewed-by: Jason Merrill <[email protected]>
