This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30625] New: Array pointers to components of derived type arrays do not work


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]