Landing: 70f3c5413a3c

Project / Subsystem

gcc / c++

Date

2026-09-23

Author

Jakub Jelinek

Commit

70f3c5413a3c8d2dd57a8f716dab8e90334b5e96

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
70f3c5413a3c8d2dd57a8f716dab8e90334b5e96
source_type
github
headline
Fix type handling for array domain unification.
tldr
Corrects array domain unification to prevent incorrect rejection of testcases on lp64 targets.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-09-23T00:00:00.000Z

The C++ frontend’s array domain unification logic has been fixed to correctly handle type conversions. Previously, it forcefully used integer types for additions, leading to incorrect rejection of valid code on lp64 targets. The change ensures additions are performed using the actual type of the operands, resolving the issue.