[Patch, fortran] PR26787 - Assigning to function causes ice in gfortran

Paul Thomas paulthomas2@wanadoo.fr
Thu Apr 13 20:08:00 GMT 2006


Steve,

>On Thu, Apr 13, 2006 at 08:51:09PM +0200, Paul Thomas wrote:
>  
>
>>2006-04-13  Paul Thomas  <pault@gcc.gnu.org>
>>
>>   PR fortran/26822
>>   * expr.c (gfc_check_assign): Extend scope of arror to include
>>    
>>
>
>s/arror/error
>  
>
Thanks

>  
>
>>   assignments to a procedure in the main program or, from a
>>   module or internal procedure that is not that represented by
>>   the lhs symbol.
>>
>>2006-04-13  Paul Thomas  <pault@gcc.gnu.org>
>>
>>   PR fortran/26822
>>   * gfortran.dg/proc_assign_1.f90: New test.
>>
>>    
>>
>
>OK with a minor mod.
>
>  
>
>>!   /* A procedure symbol cannot be an lvalue if it is:  */
>>    
>>
>
>Can you add the section number from the standard to above?  For example,
>/* From 12.2.3, a procedure symbol cannot ... */
>  
>
Yes, sure.  I confess to having implemented that which is obvious, 
rather than looking at the standard.  I'll put that right.

Paul



More information about the Gcc-patches mailing list