This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR41235, accepts invalid
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