[Bug fortran/91160] merge_bits is broken for BOZ arguments
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 14 03:16:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91160
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
--- Comment #1 from kargl at gcc dot gnu.org ---
! { dg-do run }
program foo
integer m, n, k
m = merge_bits(b'010101', 1234, 42); if (m /= 1232) stop 1
n = merge_bits(1234, z'3456', 42); if (n /= 13398) stop 2
k = merge_bits(1234, 3456, o'12334'); if (k /= 3536) stop 3
end program foo
% gfortran8 -c merge_bits_4.f90
merge_bits_4.f90:4:29:
m = merge_bits(b'010101', 1234, 42); if (m /= 1232) stop 1
1
Error: 'j' argument of 'merge_bits' intrinsic at (1) must be the same type and
kind as 'i'
merge_bits_4.f90:5:24:
n = merge_bits(1234, z'3456', 42); if (n /= 13398) stop 2
1
Error: 'j' argument of 'merge_bits' intrinsic at (1) must be the same type and
kind as 'i'
merge_bits_4.f90:6:30:
k = merge_bits(1234, 3456, o'12334'); if (k /= 3536) stop 3
1
Error: 'mask' argument of 'merge_bits' intrinsic at (1) must be the same type
and kind as 'i'
More information about the Gcc-bugs
mailing list