This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR30407 - Elemental functions in WHERE assignments wrongly rejected


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]