Landing: e907bc4955ca

Project / Subsystem

gcc / c++

Date

2026-09-08

Author

Jason Merrill

Commit

e907bc4955ca7305fed4befff4c3d5f71d29d5e8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
e907bc4955ca7305fed4befff4c3d5f71d29d5e8
source_type
github
headline
c++: Apply maybe_push_to_top_level in class template instantiation
tldr
Refactors class template instantiation to use a common helper function for moving entities to top-level scope.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • template
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-09-08T00:00:00.000Z

The class template instantiation logic in pt.cc has been refactored to utilize the maybe_push_to_top_level helper function. This change aims to consolidate code and improve consistency by moving entities that don’t need to remain local to the class template’s scope to the top-level scope, similar to how lambda handling was previously adjusted. This refactoring contributes to cleaner internal code management.