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/22607] Elemental character functions don't work



------- Comment #8 from eedelman at gcc dot gnu dot org  2005-12-29 20:52 -------
It seems my patch fixed pure by-reference functions only for internal
functions.  Pure by-ref. module functions still doesn't work:

erik:/home/gcc/head/test$ cat pure_byref_3.f90 
module huj_mod
contains
    pure function huj()
        integer :: huj(3)
        huj = (/1, 2, 3/)
    end function huj
end module huj_mod

program pure_byref_3
    use huj_mod
    print *, huj()
end program pure_byref_3
erik:/home/gcc/head/test$ gfortran pure_byref_3.f90 
erik:/home/gcc/head/test$ a.out
 -1080540352 -1209060288 -1209060282


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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


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