This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Fix RETURN matcher was: Re: bug fc110
Tobias Schlüter wrote:
> Richard E Maine wrote:
[...]
> > "A blank shall be used to separate names, constants, or labels from
> > adjacent keywords, names, constants, or labels."
>
> Yes, that's the place that I had quoted :-) in reply to which Walt claimed
> that the blank between RETURN (keyword) and 1 (constant) is not required,
> because it's not a constraint. But maybe I misunderstood him?
I think this is a case of confusion between requirements on the program,
and requirements on the compiler (as recently discussed on c.l.f.).
In this case (as I understand it from Walt's comment), the standard
requires that standard-conforming Fortran programs not use "RETURN1".
It is not, however, a requirement on the compiler: specifically, it does
not require that the compiler diagnose this as an error. Thus, it is
perfectly acceptable for the compiler to treat it the same way that it
treats "RETURN 1".
- Brooks
--
The "bmoses-nospam" address is valid; no unmunging needed.