[Bug fortran/22607] Elemental character functions don't work
eedelman at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 29 20:52:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list