This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran, committed] PR 24008: require argument list for functionentries
Jakub Jelinek wrote:
> On Tue, Nov 01, 2005 at 10:55:33PM +0100, Tobias.Schlueter@Physik.Uni-Muenchen.DE wrote:
>
>>This trivial one-liner fixes a small bug in the parsing of function entries,
>>where we would allow entry declarations of the form
>> ENTRY f RESULT(a)
>>This is in fact not allowed, but an empty argument list is required. (Actually,
>>in fixed form this would be parsed as ENTRY fresult(a), so there is a reason why
>>the argument list is required.)
>
>
> Are you sure about that? 4 months ago you said you don't see such a
> requirement in the standard:
> http://gcc.gnu.org/ml/fortran/2005-07/msg00051.html
>
> It is clear that ENTRY foo RESULT (bar) should be disallowed, but
> ENTRY foo
> in FUNCTION IMHO shouldn't.
Indeed, I read the BNF incorrectly. Great you have such a good memory, I'll
fix this.
Thanks,
- Tobi