[patch, fortran] Fix PR41235, accepts invalid

Daniel Franke franke.daniel@gmail.com
Wed Dec 9 23:51:00 GMT 2009


On Wednesday 09 December 2009 11:58:38 you wrote:
> On 12/08/2009 08:42 PM, Daniel Franke wrote:
> > Attached patch fixes PR41235, functions with non-constant string length
> > as a return type require an explicit interface.
> >
> > No new testcase as this is already included in
> > gfortran.dg/auto_char_len_4.f90
> >
> > 	* gfortran.dg/auto_char_len_4.f90: Check for additional error.
> 
> I am a bit lost. 

And rightly so.

Ignore the last patch, try this updated one instead. The place in interface.c 
was wrong and the required check is actually already present in resolve.c 
(resolve_fl_procedure) - it just didn't apply in the reporters case. Changed 
to check for unknown interfaces instead of explicitely marked external 
procedures - the entry_master check is to silence entry_17.f90.

Regression tested on i686-pc-linux-gnu. Ok for trunk (with updated ChangeLog 
and testcase from PR)?

Cheers

	Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr41235-2.diff
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091209/47a8a461/attachment.bin>


More information about the Fortran mailing list