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/15364] New: Array fields in derived types not printed correctly.


% cat foo.f90

program main
  character*80 buf1, buf2
  type xyz
     integer :: x(5) = 123
  end
  type (xyz) :: a
  write(buf1,*) a%x
  write(buf2,*) a
  if (buf1.ne.buf2) then
     print*, buf1
     print*, buf2
     call abort
  endif
end

% a.out
         123          123          123          123          123                
         123                                                                    
Abort (core dumped)

-- 
           Summary: Array fields in derived types not printed correctly.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15364


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