[patch, fortran] Fix PR41235, accepts invalid

Daniel Franke franke.daniel@gmail.com
Tue Dec 8 19:43:00 GMT 2009


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


2009-12-08  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/41235
	* interface.c (gfc_procedure_use): Check that character functions
	with non-constant length have an explicit interface. Merged if-branches.

2009-12-08  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/41235
	* gfortran.dg/auto_char_len_4.f90: Check for additional error.

Regression tested on i686-pc-linux-gnu. Ok for trunk?

Cheers

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


More information about the Fortran mailing list