GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
aarch64

AArch64 adds C++ testcase for aligned may_alias types.

New C++ testcase added for AArch64 to cover aligned `may_alias` types, addressing PR124146.

A C++ test case has been added for the AArch64 architecture to specifically test aligned may_alias types. This new test mirrors an existing C test and addresses an internal compiler error (ICE) that occurred without the fix, ensuring that the compiler correctly handles these types in C++ contexts.

In Details

A new C++ test case g++.target/aarch64/pr124146.C is added to the AArch64 test suite to reproduce and verify a fix for an ICE related to aligned may_alias types. This complements an existing C test, ensuring consistent handling of type aliasing rules and alignment for specific data types across C and C++ compilation on the AArch64 target.

For Context
may_alias
A type qualifier in C/C++ that informs the compiler that pointers of this type may or may not point to different memory locations, affecting optimization decisions.
aligned
Indicates that data is stored at a memory address that is a multiple of a specific value, which can improve performance on some architectures.
ICE
Internal Compiler Error, a condition where the compiler encounters an unrecoverable internal error and terminates.
PR124146
Problem Report number 124146, referencing a specific bug in the GCC bug tracking system.
Filed Under: aarch64testsuiteC++type system