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