Landing: e78da8455a1e

Project / Subsystem

gcc / c++

Date

2026-08-18

Author

Jakub Jelinek

Commit

e78da8455a1ef5b188085d97a61b4e7dee812c93

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
e78da8455a1ef5b188085d97a61b4e7dee812c93
source_type
github
headline
C++: Fix assertion in build_vec_init due to compiler changes
tldr
Corrects an assertion in vector initialization code to align with recent compiler optimizations.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler bug
  • • optimization
  • • ice
discussion_id_link
—
bugzilla_pr
—
date
2026-08-18T00:00:00.000Z

This commit adjusts an assertion within GCC’s C++ frontend’s build_vec_init function to prevent an ICE (Internal Compiler Error). Recent compiler changes, particularly an optimization that modifies how cleanups handle rvalues, caused the existing assertion to fail. The patch modifies the assertion to match the new behavior, ensuring compiler stability and correctness during vector initialization, especially with C++ initializer lists.