Landing: dad0fca70f5a
Project / Subsystem
gcc / c++/modules
Date
2026-09-05
Author
Patrick Palka
Commit
dad0fca70f5a35b1016189eb544ea729b0144417
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++/modules
- patch_id
- —
- commit_hash
- dad0fca70f5a35b1016189eb544ea729b0144417
- source_type
- github
- headline
- c++/modules: Improve handling of friend template specializations in modules.
- tldr
- c++/modules: Fixes module handling for friend template specializations without prior declarations.
- author
- Patrick Palka
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • modules
- • templates
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-05T00:00:00.000Z
This change enhances C++ module support by correctly handling template information that uses an identifier as a template, specifically for friend template specializations that lack a prior declaration. This resolves an issue where certain sanity checks were too strict, preventing these cases from being processed correctly. New test cases are included to verify the fix.