Landing: 91e2f5a8aac9

Project / Subsystem

gcc / c++

Date

2026-08-18

Author

Jakub Jelinek

Commit

91e2f5a8aac9c9825e4a13e8f7451bc6d8f75790

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
91e2f5a8aac9c9825e4a13e8f7451bc6d8f75790
source_type
github
headline
C++: Fix ICE during mangling of conversion operator function template
tldr
Resolves an ICE in C++ mangling for conversion operator function templates.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler bug
  • • mangling
  • • ice
discussion_id_link
—
bugzilla_pr
—
date
2026-08-18T00:00:00.000Z

This commit fixes an Internal Compiler Error (ICE) that occurred during the mangling of C++ conversion operator function templates. The problem arose because the FNDECL_USED_AUTO macro expected a FUNCTION_DECL but was sometimes given a TEMPLATE_DECL. The fix involves using STRIP_TEMPLATE earlier in the mangling process to ensure that the macro operates on the correct declaration type, thus preventing the crash and enabling proper mangling of these constructs.