Landing: 2ae6b772dc5e

Project / Subsystem

gcc / libstdc++

Date

2026-05-25

Author

Tomasz Kamiński

Commit

2ae6b772dc5ebd2ce209f613828288a99447659a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
2ae6b772dc5ebd2ce209f613828288a99447659a
source_type
github
headline
libstdc++: Adjust test expectations for trivial unions (P3074R7).
tldr
Updates libstdc++ tests to reflect that trivial unions are now trivially destructible under `__cpp_trivial_union >= 202502L`.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • trivial unions
  • c++26
  • testsuite
discussion_id_link
bugzilla_pr
date
2026-05-25T00:00:00.000Z

Several libstdc++ test cases have been adjusted to reflect changes introduced by P3074R7 regarding trivial unions. Specifically, the tests for is_constructible, is_destructible, and is_nothrow_destructible now expect a different value when compiling with C++26 or later (indicated by __cpp_trivial_union >= 202502L), as trivial unions are now considered trivially destructible.