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: 22 Jun 2006 18:26:56 -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 #4 from pault at gcc dot gnu dot org 2006-06-22 18:26 -------
> > we should check that an elemental function doesn't return a pointer.
a pointer already yields:
INTEGER, pointer :: MM ! should be scalar
1
Error: POINTER attribute conflicts with ELEMENTAL attribute at (1)
In file pr20874.f90:3
I have duly removed the check on rank and, of course, all works fine.
Thanks - I will submit tomorrow am.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20874