Hi Jerry, regarding the testcase, these variants are both standard-conforming and silent under -pedantic:
x = ibset (0_8, 63) x = ibset (0_8, bit_size(x)-1) No trickery needed. Cheers, Harald Am 03.12.24 um 05:13 schrieb Jerry D:
Hi all, Attached patch adds a test for zero that is needed for write_boz to work correctly. Almost obvious. Regression tested on x86_64. Ok for trunk? Jerry Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Mon Dec 2 19:45:26 2024 -0800 Fortran: Fix B64.0 formatted write output. PR fortran/117820 libgfortran/ChangeLog: * io/write.c (write_b): Add test for zero needed by write_boz. gcc/testsuite/ChangeLog: * gfortran.dg/pr117820.f90: New test.