[Bug fortran/17192] Functions returning pointer via argument are broken
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 25 22:56:00 GMT 2004
------- Additional Comments From tobi at gcc dot gnu dot org 2004-08-25 22:56 -------
Self-contained testcase:
character*5, pointer :: p
character*5, target :: c,e
c = "Hallo"
p => c
call s(p,c,p)
print *,p
contains
subroutine s(p,e,d)
character*5, pointer ::p
character*5 :: e, d
e = d
p=>c
end subroutine s
end
gives:
[tobi@marktplatz tests]$ gfortran assign.f90
assign.f90: In function `s':
assign.f90:13: internal compiler error: in gfc_build_indirect_ref, at
fortran/trans.c:296
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17192
More information about the Gcc-bugs
mailing list