Landing: 0e429acc24a2

Project / Subsystem

gcc / c++

Date

2026-07-26

Author

Jason Merrill

Commit

0e429acc24a2305c77da1229c456788e50edcae9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
0e429acc24a2305c77da1229c456788e50edcae9
source_type
github
headline
c++: vrp and pmf conversion [PR126310]
tldr
Fixes incorrect type conversion for pointer-to-member-function conversions, resolving a compiler ICE.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • compiler-error
  • type-conversion
discussion_id_link
bugzilla_pr
date
2026-07-26T00:00:00.000Z

This change corrects an error in C++ type conversion logic that led to incorrect handling of pointer-to-member-function types. Specifically, it ensures that conversions to a target type like void(sub::*)(int&&) are performed accurately, rather than to an unintended type like void(sub::*)(ValuePart&&). This fixes an optimizer confusion and resolves an internal compiler error (ICE) reported in PR126310.