Landing: 71a5a83ea92f

Project / Subsystem

gcc / c++

Date

2026-07-20

Author

Jakub Jelinek

Commit

71a5a83ea92f4cde1ca2b37f3b160353a729f35b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
71a5a83ea92f4cde1ca2b37f3b160353a729f35b
source_type
github
headline
C++: Implement __has_cpp_attribute(indeterminate) for CWG3020
tldr
Adds support for the C++26 __has_cpp_attribute(indeterminate) preprocessor check.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • cpp26
  • preprocessor
  • attribute
discussion_id_link
bugzilla_pr
date
2026-07-20T00:00:00.000Z

GCC now correctly recognizes the __has_cpp_attribute(indeterminate) preprocessor directive, aligning with the C++26 standard. This feature, related to the indeterminate attribute, was missing from GCC’s preprocessor checks. The change updates c_common_has_attribute to handle this new attribute specifier, ensuring code using this feature can be correctly processed and tested with new test cases for C++26 and C++29.