Landing: 309927071033

Project / Subsystem

gcc / c++

Date

2026-08-24

Author

Marek Polacek

Commit

30992707103392fbe55b972a09fa6497cf3157e3

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
30992707103392fbe55b972a09fa6497cf3157e3
source_type
github
headline
C++: Fix function classification as immediate-escalating.
tldr
Correctly identifies functions that are not user-provided as immediate-escalating.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler
  • • reflection
  • • CWG
discussion_id_link
—
bugzilla_pr
—
date
2026-08-24T00:00:00.000Z

A function was being incorrectly classified as immediate-escalating in GCC’s C++ front-end. This issue stemmed from a misinterpretation of CWG 3153, which clarifies that non-user-provided functions defaulted on a declaration other than their first are considered user-provided. The fix ensures that the immediate_escalating_function_p check now correctly considers the user_provided_p status, aligning with the standard’s intent.