This is the mail archive of the gcc-bugs@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]

[Bug fortran/20874] elemental function ought to be scalar



------- 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


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