Landing: e28d144e3492

Project / Subsystem

gcc / c++

Date

2026-05-20

Author

Marek Polacek

Commit

e28d144e3492b93b5b09e365439758e7403a16d2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
e28d144e3492b93b5b09e365439758e7403a16d2
source_type
github
headline
Fix ICE in variadic using-declaration with conversion functions.
tldr
Fixes an internal compiler error (ICE) when using variadic using-declarations with conversion functions due to incorrect argument rewriting.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • templates
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-20T00:00:00.000Z

The compiler crashed when encountering a variadic using-declaration combined with a conversion function. The issue arose because the compiler was rewriting arguments incorrectly during template substitution, leading to unexpected identifier node types. The fix involves copying the arguments before modification to prevent unintended side effects. This issue was reported in PR125284 and PR125333.