! from PR 15962, we used to require constant expressions instead of! initialization expressions in case-statementsfunction j(k)integer::kinteger::jinteger,parameter::i(2)=(/1,2/)select case(k)case(1:size(i))j=i(k)case defaultj=0end selectend functionif(j(2).NE.2.OR.j(11).NE.0)call abort()end