------- Comment #2 from burnus at gcc dot gnu dot org  2007-02-13 18:19 -------
>From the Fortran 2003 standard:
--------------
C528 (R501) If the VALUE attribute is specified, the length type parameter
values shall be omitted or specified by initialization expressions.
--------------

Which rules out deferred type parameters such as "*" or ":".

However, I fail to see anything which rules out "(10)" even though also sunf95
and NAG f95 claim that anything but nothing or "(1)" is wrong.

ifort and g95 allow "(10)" but crash or at least access uninitialized memory.

And as said: gfortran allows "(10)" and it works properly.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30783

Reply via email to