https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937
--- Comment #8 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:6cce953ebec274f1468d5d3a0697cf05bb43b8f6 commit r13-6362-g6cce953ebec274f1468d5d3a0697cf05bb43b8f6 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Feb 27 21:37:11 2023 +0100 Fortran: fix corner case of IBITS intrinsic [PR108937] gcc/fortran/ChangeLog: PR fortran/108937 * trans-intrinsic.cc (gfc_conv_intrinsic_ibits): Handle corner case LEN argument of IBITS equal to BITSIZE(I). gcc/testsuite/ChangeLog: PR fortran/108937 * gfortran.dg/ibits_2.f90: New test.