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: [gfortran] patch PR 17229


Paul Brook wrote:
>>1. this is an extension as I pointed out in the PR so we should issue a
>>warning and reject this if pedantic.
> 
> 
> I disagree. an arithmetic-if-stmt is an action-stmt, so AFAICS the above code 
> is legal F95.
> 
> The f77 standard contains similar wording, ie. it disallows logical IF 
> statements, but does not say anything about arithmetic IF statements.
> 
> Arithmetic IF statements are obsolescent in f95 and deleted in f2k3, so we 
> should issue a message about that. This is a preexisting bug.

You are correct on all three counts, I just double-checked the standard.  It
looks like I didn't look at the end of the otherwise alphabetically ordered
list in R216 when I wrote that comment in the PR.

Thanks for checking this,
- Tobi


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