This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16511] Test 19990905-0.f fails with gfortran
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2004 03:26:32 -0000
- Subject: [Bug fortran/16511] Test 19990905-0.f fails with gfortran
- References: <20040713055437.16511.billingd@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From billingd at gcc dot gnu dot org 2004-07-14 03:26 -------
Change of opinion here.
This is not standard Fortran 77, and I don't think it is standard
Fortran 95. My opinion is that gfortran is correct to reject this.
>From ANSI X3.9 Section 5.5.1:
An adjustable array declarator must be a dummy array declarator. At
least one dummy argument list of the subprogram must contain the name
of the adjustable array. A variable name that appears in a dimension
bound expression of an array must also appear as a name either in
every dummy argument list that contains the array name or in a common
block in that subprogram.
Fortran 95 talks about "explicit-shape arrays" that are dummy arguments
in Section 5.1.2.4.1. The array bounds must be specification-expr, as
given in Section 7.1.6.2. This is quite a list, but I don't think
we can define values using EQUIVALENCE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16511