This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47054] Compilation error when cray pointers are declared in both host and internal subroutines
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 3 Jan 2011 22:39:46 +0000
- Subject: [Bug fortran/47054] Compilation error when cray pointers are declared in both host and internal subroutines
- Auto-submitted: auto-generated
- References: <bug-47054-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47054
--- Comment #4 from kargl at gcc dot gnu.org 2011-01-03 22:39:37 UTC ---
Reduced testcase.
subroutine host_sub
implicit none
real xg
pointer (paxg, xg)
call internal_sub
contains
subroutine internal_sub
implicit none
real xg
pointer (paxg, xg)
end subroutine internal_sub
end subroutine host_sub
It seems that gfortran is getting confused
by host association, the symbol names, and
the pointer() in internal_sub.