pgf90 17.4 : problem to evaluate size of parameter

Hi,

MODULE test
   integer,private,parameter :: HDR_KNOWN_HEADFORMS(1) = [80]

   integer,public,parameter :: HDR_LATEST_HEADFORM = HDR_KNOWN_HEADFORMS(size(HDR_KNOWN_HEADFORMS))

END MODULE

pgf90 -c test.F90

PGF90-S-0000-Internal compiler error. get_const_from_ast: can’t get const value 0 (test.F90: 4)
PGF90-S-0000-Internal compiler error. get_const_from_ast: can’t get const value 0 (test.F90: 4)
PGF90-S-0000-Internal compiler error. get_const_from_ast: can’t get const value 0 (test.F90: 4)
PGF90-F-0000-Internal compiler error. Subscript for array is out-of-bounds 0 (test.F90: 4)
PGF90/x86-64 Linux 17.4-0: compilation aborted

it works with GCC >4.7 , ifort > 13.1, xlf 15, …

bug ? feature ?

thanks,

jmb

How about if we call it a feature that is going away?

This problem has been logged as TPR 24263.

Thanks,
dave

The issue should be fixed starting with 19.1