GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
fortran

Fortran: Correct logic for pointer assignment remap resolution

Fixes a logic error in Fortran pointer assignment that caused incorrect remap start and end resolution.

This patch corrects a logic error in trans-expr.cc related to Fortran pointer assignments. Specifically, it addresses issues in the conditions for resolving the start and end of pointer remappings. The fix ensures that pointer assignments are handled more accurately.

In Details

The Fortran frontend's expression translation pass (currently within trans-expr.cc) encountered an issue where conditional logic for pointer remapping was flawed. This commit refines the conditions that determine the start and end points of a pointer's remapped association, ensuring correct behavior for complex pointer operations.

Filed Under: fortranpointerbugfix