https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692
--- Comment #24 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:b95b3406c1f7ea603495d71f62b21a9d2c8e15b9 commit r12-10899-gb95b3406c1f7ea603495d71f62b21a9d2c8e15b9 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)