Landing: 4bcbeb8d5d4d
Project / Subsystem
gcc / c++
Date
2026-09-21
Author
Jakub Jelinek
Commit
4bcbeb8d5d4d23d2e575cd947c59c410d62ca457
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 4bcbeb8d5d4d23d2e575cd947c59c410d62ca457
- source_type
- github
- headline
- Fix reflection source_location_of on member function reflections
- tldr
- Correctly retrieves source location for C++ member function reflections.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • reflection
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-21T00:00:00.000Z
This commit fixes an issue in C++ reflection where the source_location_of function did not correctly retrieve the source location for member function reflections. By calling maybe_get_first_fn, the compiler can now access the DECL_SOURCE_LOCATION as intended, ensuring accurate reflection data.