Landing: b6fd2fdd3887
Project / Subsystem
gcc / c++
Date
2026-05-19
Author
Marek Polacek
Commit
b6fd2fdd3887658e4212dc4945d8a41dd36cb21a
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- b6fd2fdd3887658e4212dc4945d8a41dd36cb21a
- source_type
- github
- headline
- Fix bogus error with xobj member function
- tldr
- Fixed a false positive error in C++ parsing related to xobj member functions and requires clauses.
- author
- Marek Polacek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • parser
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-19T00:00:00.000Z
This commit fixes a bug in the C++ parser that caused a spurious “not declared in this scope” error when parsing requires clauses with xobj parameters (explicit object parameters). The issue occurred because the parser failed to properly pushdecl when the parameter’s default argument was a this_identifier. This correction ensures that code using xobj member functions compiles without unexpected errors.