Landing: dcaafedee8a3

Project / Subsystem

gcc / c++

Date

2026-09-11

Author

Jakub Jelinek

Commit

dcaafedee8a34f9ad60ac4d47ffe7529959028d2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
dcaafedee8a34f9ad60ac4d47ffe7529959028d2
source_type
github
headline
C++ compiler fixes tsubst_splice_expr for PR127276.
tldr
Corrects the C++ compiler's handling of splice expressions in templates to properly convert references.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • templates
  • • compiler bug
discussion_id_link
—
bugzilla_pr
—
date
2026-09-11T00:00:00.000Z

This commit fixes a bug in GCC’s C++ frontend where splice expressions used within templates were not being correctly processed. Specifically, the compiler failed to call convert_from_reference for PARM_DECLs of REFERENCE_TYPE, leading to incorrect calls to build_x_array_ref. The fix ensures convert_from_reference is called, resolving the issue and allowing a new test case to pass.