This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17192] Functions returning pointer via argument are broken
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2004 22:56:41 -0000
- Subject: [Bug fortran/17192] Functions returning pointer via argument are broken
- References: <20040825220057.17192.tobi@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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