This is the mail archive of the gcc-patches@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]

Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=


Steve Kargl wrote:
> A quick read through F2008 suggests that MOLD and SOURCE can
> appear in the same allocate statement.  Which source-expr
> takes precedence?
>   

No, C637 ensures that there is either a MOLD=source-expr or
SOURCE=source-expr:

"C637 (R626) At most one of source-expr and type-spec shall appear."
(F2008 FDIS of 7th June 2010).

Thus, a expr4 is not really needed - a flag to distinguish betwixt MOLD
and SOURCE would be enough.

Does the patch check for this constraint?

Tobias


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