[Patch, fortran] PR33337 and PR33376 - use associated derived type parameters with array refs.

FX Coudert fxcoudert@gmail.com
Sat Sep 22 14:24:00 GMT 2007


> 2007-09-22  Paul Thomas  <pault@gcc.gnu.org>
>
>    PR fortran/33337
>    PR fortran/33376
>    * trans-decl.c (gfc_create_module_variable): Output
>    derived type parameters.
>    * arith.c (gfc_parentheses): Return the argument if
>    it is a constant expression.
>    * primary.c (gfc_match_rvalue): Remove the clearing of
>    the module name and the use_assoc attribute for derived
>    type parameter expressions.

This seems fine to me, except for formatting of the block below:

> !   /* Only output variables and array valued, or derived type,  
> parameters.  */
>     if (sym->attr.flavor != FL_VARIABLE
> ! 		&&
> !       !(sym->attr.flavor == FL_PARAMETER
> ! 	  && (sym->attr.dimension != 0 || sym->ts.type == BT_DERIVED)))
>       return;

FX



More information about the Gcc-patches mailing list