[patch, fortran] module that calls a contained function with an ENTRY point

Jerry DeLisle jvdelisle@verizon.net
Sat Jul 28 21:14:00 GMT 2007


The attached patch resolves an infinite loop and segfault in generic_sym.  The 
result allows the original test case to compile correctly.  The attached test 
case compiles and executes correctly.

I will commit shortly as OKed by Paul on IRC.

Regression tested on x86-64-Gnu/Linux.

Regards,

Jerry

2007-07-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/31609
	* resolve.c (generic_sym): Check for a same symbol and if so, return to
	avoid infinite recursion.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr31609.diff
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070728/ca11e642/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entry_10.f90
Type: text/x-fortran
Size: 467 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070728/ca11e642/attachment-0001.bin>


More information about the Fortran mailing list