[Patch, fortran] PR30236 - alternate-return subroutine in generic interface causes ice/segfault

Paul Thomas paulthomas2@wanadoo.fr
Tue Dec 19 18:07:00 GMT 2006


Steve and Brooks,
> On Mon, Dec 18, 2006 at 08:05:58AM +0100, Paul Thomas wrote:
>   
>> 2006-12-18  Paul Thomas <pault@gcc.gnu.org>
>>
>> 	PR fortran/30236
>> 	* interface.c (compare_interfaces): Handle NULL symbols.
>> 	(count_types_test): Count NULL symbols, which correspond to
>> 	alternate returns.
>>     
>
> This is OK.
>   
Thanks
>   
>> 2006-12-18  Paul Thomas <pault@gcc.gnu.org>
>>
>> 	PR fortran/30236
>> 	* gfortran.dg/generic_11.f90: New test.
>>     
>
> Please consider Brooks' comments before committing.
>   
Done and some ... I added extra tests to ensure that not only was the 
code surviving to the end but that the alternate entries are resoponding 
to the correct input.  I also called it altreturn_3.f90 :-)

At the same time I did the int to bool change that you had requested, 
Steve, and corrected the typos noted by Jerry.

Paul



More information about the Fortran mailing list