https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692
--- Comment #23 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:91706178c3765cb27b05391c86f5c4f421ddd56d commit r13-9307-g91706178c3765cb27b05391c86f5c4f421ddd56d Author: Harald Anlauf <anl...@gmx.de> Date: Thu Jan 2 20:22:23 2025 +0100 Fortran: Cray pointer comparison wrongly optimized away [PR106692] PR fortran/106692 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_expr_op): Inhibit excessive optimization of Cray pointers by treating them as volatile in comparisons. gcc/testsuite/ChangeLog: * gfortran.dg/cray_pointers_13.f90: New test. (cherry picked from commit c7754a2fb2e60987524947fe189f3ffac035ea1d)