This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] PR33542 - gfortran does not detect ambigious specific names if they are the same as generic names


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


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