https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106557
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:7e51df048ae849115e12bf12702bdf1b65893be7 commit r13-2139-g7e51df048ae849115e12bf12702bdf1b65893be7 Author: Harald Anlauf <anl...@gmx.de> Date: Sat Aug 20 20:36:28 2022 +0200 Fortran: fix simplification of intrinsics IBCLR and IBSET [PR106557] gcc/fortran/ChangeLog: PR fortran/106557 * simplify.cc (gfc_simplify_ibclr): Ensure consistent results of the simplification by dropping a redundant memory representation of argument x. (gfc_simplify_ibset): Likewise. gcc/testsuite/ChangeLog: PR fortran/106557 * gfortran.dg/pr106557.f90: New test.