[Patch, fortran] PR30407 - Elemental functions in WHERE assignments wrongly rejected
Paul Thomas
paulthomas2@wanadoo.fr
Tue Jan 23 07:30:00 GMT 2007
Tobias,
>
> /projects/tob/gcc/gcc/fortran/trans-stmt.c: In function 'gfc_trans_where_2':
> /projects/tob/gcc/gcc/fortran/trans-stmt.c:3110: warning: 'cnext' is
> used uninitialized in this function
>
Thanks, I missed the warning.
> gfc_code *cnext;
> gfc_actual_arglist *arg = cnext->ext.actual; /* <<<<< */
>
The initialization should be omitted because...
> and later:
> cnext = cblock->next;
>
..cnext is set her and only used afterwards.
Paul
More information about the Fortran
mailing list