https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:adc4c8eb79a75bd0f38a461c299b37c643a1153c commit r11-10560-gadc4c8eb79a75bd0f38a461c299b37c643a1153c 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.c (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. (cherry picked from commit 6cce953ebec274f1468d5d3a0697cf05bb43b8f6)