------- Comment #3 from pault at gcc dot gnu dot org  2006-06-20 23:33 -------
FX,
> which makes me think that simply having as != NULL is enough to know that it's
> not a scalar.

That's my opinion too.  I know that it works because I have tried it!  I was
"persuaded" otherwise after a discussion on the list about another patch.  I
will submit it as you suggest.

> 
> 
> One more thing: reading the lines after the code I pasted above reminds me 
> that
> we should check that an elemental function doesn't return a pointer. Could it
> be  along these lines?:
> 
> +  if (sym->attr.elemental && sym->attr.function
> +       && sym->result->attr.pointer)
> +    ...
> 
I am separated from my notes tonight; I know I looked at this but I do not
recall the outcome.

Thanks

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20874

Reply via email to