Landing: 9004416d8dd9

Project / Subsystem

gcc / c++

Date

2026-07-13

Author

Yuxuan Chen

Commit

9004416d8dd9f4c94d72d921e31dadaf85134be5

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
9004416d8dd9f4c94d72d921e31dadaf85134be5
source_type
github
headline
C++: Ensure type variants are consistent for trivial_abi
tldr
Fixes C++ type consistency for trivial_abi by applying attribute removal to all variants.
author
Yuxuan Chen
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • type system
discussion_id_link
bugzilla_pr
date
2026-07-13T00:00:00.000Z

This commit addresses an inconsistency in C++ type handling for the trivial_abi attribute. Previously, removing this attribute from only the main type could lead to qualified variants having different attributes, even though they shared a canonical type. The fix ensures the rejected attribute is removed from all variants, maintaining type consistency.