[patch, fortran] Fix PR41235, accepts invalid
Tobias Burnus
burnus@net-b.de
Fri Dec 11 23:18:00 GMT 2009
Am 10.12.2009 22:52, schrieb Tobias Burnus:
> I am not sure that the patch is correct. I think one refers to the
> following item in the standard:
>
> "A procedure [...] shall have an explicit interface if it is referenced and
> [...]
> (3) The procedure has a result that [...]
> (c) has a nonassumed type parameter value that is not an initialization
> expression,"
>
I updated the patch now:
a) I deleted the current check, which rejected valid programs, where one
had an implicit interface with non-init-expr character lengths.
b) I added a check using -fwhole-file, which does prints an error under
the constraint that gfortran knows that the function is does not have a
assumed-length type parameter.
Bootstrapped and regtested on x86-64-linux.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assumed-char-func.diff
Type: text/x-patch
Size: 5229 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091211/da9a2375/attachment.bin>
More information about the Fortran
mailing list