Landing: d02c3ca9541a

Project / Subsystem

gcc / c++

Date

2026-08-26

Author

Jason Merrill

Commit

d02c3ca9541aa2ab6ae0e7d9a21603446e561951

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
d02c3ca9541aa2ab6ae0e7d9a21603446e561951
source_type
github
headline
C++: Fix alias template conversions with capture proxies.
tldr
Resolves issues with C++ alias template conversions involving lambda capture proxies.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • templates
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-26T00:00:00.000Z

This commit addresses a problem in C++ alias template conversions where building an IMPLICIT_CONV_EXPR around a capture proxy caused the compiler to lose lambda scope during substitution, leading to errors. The fix ensures that capture proxies are properly resolved to their constant values using mark_rvalue_use and rewrites the conversion to handle NOP_EXPR/CONVERT_EXPR more effectively.