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: PR32634 -- reverted patch, gfortran.dg/interface_16.f90 failure


Hi Paul,

Paul Richard Thomas wrote:
>    nuse = number_use_names (sym->name);
>    if (nuse == 0)
> !     {
> !       mio_symbol_interface (&sym->name, &sym->module, &sym->generic);
> !       return;
> !     }
Ignoring the fact that there seems to be some whitespace problem (spaces
vs. tabs), this does not compile here:

gcc/fortran/module.c: In function 'read_module':
gcc/fortran/module.c:3465: error: 'sym' may be used uninitialized in
this function

We have:
  gfc_symbol *sym; [...]
  while (peek_atom () != ATOM_RPAREN)
    { [...]
      sym = find_true_name (info->u.rsym.true_name, info->u.rsym.module);
    } [...]
  while (peek_atom () != ATOM_RPAREN)
    { [...]
          mio_symbol_interface (&sym->name, &sym->module, &sym->generic);

I don't quickly see whether gcc is overly strict or right.

Tobias


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