Hi Thomas,
With your patch, compiling the original test for pr61968 with -O3 gives an ICE
% gfc pr61968.f90 -c -O3
pr61968.f90:32:0:
32 | call test_lib (a, int (sizeof (a), kind=c_size_t))
|
internal compiler error: in gfc_trans_create_temp_array, at fortran/trans-array.c:1265
TIA
Dominique