PR32634 -- reverted patch, gfortran.dg/interface_16.f90 failure
Tobias Burnus
burnus@net-b.de
Thu Jul 12 19:28:00 GMT 2007
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
More information about the Fortran
mailing list