This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16511] Test 19990905-0.f fails with gfortran


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]