------- Comment #4 from dominiq at lps dot ens dot fr 2007-12-21 15:04 ------- With the patch in http://gcc.gnu.org/ml/fortran/2007-12/msg00221.html, the test case #1 gives:
pr34514.f90:2.14: dimension :: n(3) 1 Error: Dimensions specified for n at (1) after its initialisation pr34514.f90:3.17: parameter (n = 42) 1 Error: Initializing already initialized variable at (1) pr34514.f90:1.12: integer :: n = 4 1 Error: Function 'n' at (1) cannot have an initializer pr34514.f90:1.12: integer :: n = 4 1 Error: 'n' at (1) is not a VALUE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34514