This works great:
program main integer,parameter,dimension(3) :: x = [1,2,3] print*,x end program main
How does it do:
program main integer,parameter,dimension(3) :: x = (/1,2,3/) print*,x end program main
Is there any reason to think that one form should be preferred over another (for example, backward compatibility)?
source share