2 ! Test the fix for pr41167, in which the first argument of 'pack', below,
3 ! was simplified incorrectly, with the results indicated.
5 ! Contributed by Harald Anlauf <anlauf@gmx.de>
10 character(len=8) :: name
12 type(t) ,parameter :: obstyp(2)= (/ t ('A'), t ('B') /)
13 character(9) :: chr(1)
15 print *, pack (" "//obstyp(:)% name, (/ .true., .false. /)) ! Used to ICE on compilation
16 chr = pack (" "//obstyp(:)% name, (/ .true., .false. /)) ! Used to give conversion error