Landing: 12fc7c1ecd34

Project / Subsystem

gcc / gcc

Date

2026-05-28

Author

Sandra Loosemore

Commit

12fc7c1ecd34c2e77a1ef6daefea8d16cd3106d0

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
12fc7c1ecd34c2e77a1ef6daefea8d16cd3106d0
source_type
github
headline
C++ OpenMP now handles ARRAY_TYPE array sections in mappers, not just pointers.
tldr
GCC now correctly handles C++ `ARRAY_TYPE` expressions, in addition to pointers, when mapping OpenMP array sections, fixing a bug introduced in a previous comm…
author
Sandra Loosemore
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • openmp
  • c++
  • bugfix
  • array-handling
discussion_id_link
bugzilla_pr
date
2026-05-28T00:00:00.000Z

This commit fixes a bug in the OpenMP implementation for C++ that prevented array sections from being correctly mapped when represented as ARRAY_TYPE expressions, only allowing pointers. This oversight, introduced in a previous patch, caused compilation issues for valid C++ OpenMP code that uses array types directly. The fix ensures consistency with other parts of the compiler that already accommodate ARRAY_TYPE for array section handling.