WEDNESDAY, JUNE 24, 2026
gccrs
gccrs: Fix ICE when handling offset on types with unknown size
Compiler crash fixed when calculating offsets on unknown-sized types, with improved diagnostic information.
This patch resolves an Internal Compiler Error (ICE) occurring when gccrs attempts to handle offsets on types with unknown sizes. It also enhances diagnostic capabilities by threading the expression location through intrinsic calls.
In Details
The gccrs compiler now correctly handles pointer arithmetic on types with incomplete layout information, preventing an ICE. The fix involves improving how expression locations are tracked for intrinsics, aiding in better error reporting during compilation.
For Context
- Internal Compiler Error (ICE)
- A severe error within the compiler itself that prevents compilation from completing. It typically indicates a bug in the compiler's internal logic.
- intrinsic
- A function or operation that is recognized and handled directly by the compiler, often corresponding to specific machine instructions for performance.