[Patch, fortran] PR24409 - ICE on module name vs dummy argument name
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Nov 8 00:09:00 GMT 2005
On Tue, Nov 08, 2005 at 12:49:51AM +0100, Tobias Schl?ter wrote:
> Steve Kargl wrote:
> >
> > Well, I've been looking at PR 15976
> >
> > module sd
> > integer :: i(n)
> > end module sd
> >
> > This is illegal. In resolve_symbol, I can determine i is an automatic
> > array, but I have not been able to determine that i is in a module
> > as oppose to say a function
>
> I suppose (sym->ns->proc_name->attr.procedure_type == PROC_MODULE)? should be
> the right question to ask. This would be valid if n were a PARAMETER so it's
> not as easy, though. Also, you said that all pointers are NULL, so this field
> might not yet have been filled in, in which case you could look at
> gfc_current_namespace->attr.procedure_type, which should also contain the
> right information.
>
All the pointers that I've inspected are NULL. I haven't
inspected all pointers. Thanks for the pointer to two
additional pointers to inspect.
--
Steve
More information about the Fortran
mailing list