[patch, fortran] Fix PR41235, accepts invalid

Daniel Franke franke.daniel@gmail.com
Mon Dec 14 19:21:00 GMT 2009


On Saturday 12 December 2009 00:18:05 Tobias Burnus wrote:
> 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?

Ok. Thanks for working on this :)

	Daniel



More information about the Fortran mailing list