This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30625] New: Array pointers to components of derived type arrays do not work
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 20:13:51 -0000
- Subject: [Bug fortran/30625] New: Array pointers to components of derived type arrays do not work
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This:
type :: a
real :: r = 3.14159
integer :: i = 42
end type a
type(a), target :: dt(2)
integer, pointer :: ip(:)
ip => dt%i
print *, ip
end
produces
$ ./a
1078530000 42
with gfortran, whereas the correct result should be two 42s
Paul
--
Summary: Array pointers to components of derived type arrays do
not work
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pault at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30625