http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53086
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed| |2012-04-23
Resolution|INVALID |
Ever Confirmed|0 |1
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-23 16:28:33
UTC ---
(In reply to comment #4)
>
> From F2003 standard one finds on page 99:
>
> The form variable-name (explicit-shape-spec-list) declares variable-name
> to have the DIMENSION attribute and specifies the array properties that
> apply.
>
> My interpretation is that
>
> COMMON /FMCOM / X(1)
>
> declares X to have 1 element while
>
> PARAMETER (MEMSIZ= 80 000 000)
> COMMON /FMCOM / X(MEMSIZ)
>
> has 80000000 elements. The above appears to be a common
> F77 idiom for "dynamic" memory management where the
> programmer is abusing the storage association of element
> x(1).
I was told that it was allowed in F77.