[Patch, fortran] PR33542 - gfortran does not detect ambigious specific names if they are the same as generic names
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sun Oct 7 19:21:00 GMT 2007
Paul Richard Thomas wrote:
> + if (e->expr_type == FL_VARIABLE && e->symtree->ambiguous)
> + {
> + gfc_error ("'%s' at %L is ambiguous", e->symtree->n.sym->name,
> + &e->where);
> + return FAILURE;
> + }
I forgot how we handle renames (I mean USE X, A=>B), but I'm guessing
that e->symtree->name would be the safe choice for the name to print.
Also a testcase with renaming would be a good thing to have.
Unless there is trouble with renaming, the patch is ok.
Cheers,
- Tobi
More information about the Fortran
mailing list