This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] fortran/44797 -- inquire's exist shall be default logical
Am 04.07.2010 09:21, schrieb Tobias Burnus:
> Steve Kargl wrote:
>> The standard requires a default logical for the EXIST
>> tag in an inquire statement. gfortran has an extension
>> to accept any logical kind. However, if -std=f95 or
>> -std=f2003 is given gfortran does not issue an error.
>> This patch fixes that shortcoming.
>> OK for trunk?
> OK if you change GFC_STD_GNU into GFC_STD_F2008. While F95 has
For completeness, I have checked the other I/O statements and the change
applies to all (F2003->F2008).
+ if (gfc_notify_std (GFC_STD_GNU, "default LOGICAL required "
+ "in %s tag at %L", tag->name, &e->where)
I would like to see in the message that it is allowed with F2008, e.g.
"Fortran 2008: Nondefault LOGICAL in %s tag at %L".