This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20874] elemental function ought to be scalar
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2006 23:33:16 -0000
- Subject: [Bug fortran/20874] elemental function ought to be scalar
- References: <bug-20874-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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