Landing: 88cd641c38a2

Project / Subsystem

gcc / c++

Date

2026-05-09

Author

Patrick Palka

Commit

88cd641c38a2a4ed69fc90098c9480e17904b1a2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
88cd641c38a2a4ed69fc90098c9480e17904b1a2
source_type
github
headline
C++: Always Walk DECL_VALUE_EXPR in cp_genericize_r
tldr
cp_genericize_r now always walks DECL_VALUE_EXPR, fixing a potential issue during template instantiation.
author
Patrick Palka
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • templates
  • instantiation
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-09T00:00:00.000Z

This commit modifies cp_genericize_r to unconditionally walk DECL_VALUE_EXPR. This change, based on a previous TODO, ensures that template instantiations involving DECL_VALUE_EXPR are handled correctly. This ensures consistent processing of C++ code involving template instantiation.