This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, fortran] PR33542 - gfortran does not detect ambigious specific names if they are the same as generic names
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 07 Oct 2007 21:21:00 +0200
- Subject: Re: [Patch, fortran] PR33542 - gfortran does not detect ambigious specific names if they are the same as generic names
- References: <email@example.com>
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,
+ 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.