This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: test for allocatable function (f95 extension)


> licts with FUNCTION attribute at (1)
> 
> Fortran 95 Draft standard, section 5.2.6: "Constraint: The array-name 
> [in an ALLOCATABLE statement] shall not be a ... function result."
> 
> I can't find where it directly gives the same constraint for ALLOCATABLE 
> as an attribute rather than in a statement of its own, but the first 
> paragraph of 5.2 says, regarding attribute specification statements: 
> "The combination of attributes that may be specified for a particular 
> entity is subject to the same restrictions as for type declaration 
> statements regardless of the method of specification," which I would 
> infer is intended to mean that this constraint applies to the case you 
> illustrate as well.
> 
> This is, I believe, something added in one of the F95 TRs and in F2003.
I believe this is part of f95 extension, but I still like to document it
(as a msg on mailing list, or as a pr).

Thanks,

Uttam


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