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: [FORTRAN PATCH] PR30400: ANY not accepted as FORALL mask


Tobi,

If this is right (and I don't see why it wouldn't be), I think you could
fold the first three matches into a single
    gfc_match ("%e = %e : %e", &iter->var, &iter->start, &iter->end);

(i) This would have to be reduced to gfc_match ("%e : %e", &iter->start, &iter->end); so that &iter->var can be tested, using the "=", to see if it is really a mask. (ii) You will note that the expressions and the ":" are treated differently, if matching them fails.

So, yes, your suggestion is tempting but then will yield different
error handling to that intended.

Is it OK for trunk and then in a week or so for 4.2?

Best regards

Paul
--
Anon: "Ignorantibus veritatem dicere semper utile est."

Abraham Lincoln: "It is better to be thought a fool than to speak and
remove all doubt."


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