Landing: b66fd30e4b39
Project / Subsystem
gcc / c++/modules
Date
2026-06-05
Author
Patrick Palka
Commit
b66fd30e4b3943460a6cc030491043502bd3b65d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++/modules
- patch_id
- —
- commit_hash
- b66fd30e4b3943460a6cc030491043502bd3b65d
- source_type
- github
- headline
- Dependent ADL in C++ modules receives memory leak and logic fixes.
- tldr
- Multiple fixes addressed a memory leak and logical errors in the dependent Argument-Dependent Lookup (ADL) implementation for C++ modules, improving memory eff…
- author
- Patrick Palka
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • modules
- • bugfix
- • memory-management
- • adl
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
This commit addresses several issues within the dependent Argument-Dependent Lookup (ADL) logic for C++ modules, including a memory leak and inaccuracies in early exit conditions. The memory leak fix significantly reduces peak memory usage when building the std module. Additionally, the corrected logic ensures that ADL processing only considers type-dependent calls and operator expressions, and rectifies a test for early exit when all arguments are type-dependent, leading to more efficient and correct module processing.