Landing: fb7d898dbc4d

Project / Subsystem

gcc / gcc/c++

Date

2026-04-28

Author

Jason Merrill

Commit

fb7d898dbc4d0b1bf099cae8635e205fa8981dc2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/c++
patch_id
commit_hash
fb7d898dbc4d0b1bf099cae8635e205fa8981dc2
source_type
github
headline
C++: Avoid ICE with [[trivial_abi]]
tldr
Fixes an internal compiler error (ICE) when using the [[trivial_abi]] attribute in C++ templates.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • bugfix
  • abi
  • template
discussion_id_link
bugzilla_pr
date
2026-04-28T00:00:00.000Z

The compiler was crashing when the [[trivial_abi]] attribute was used in C++ template code. This commit fixes the issue by ensuring that the trivial_abi related logic is only applied when not processing a template declaration. This prevents the compiler from trying to perform cleanup operations at template parsing time, which is not necessary.