This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15364] Array fields in derived types not printed correctly.
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2004 17:18:42 -0000
- Subject: [Bug fortran/15364] Array fields in derived types not printed correctly.
- References: <20040510134503.15364.lei@il.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-08-27 17:18 -------
The example code had to be updated to reflect our compiler having become stricter:
program main
character*80 buf1, buf2
type xyz
integer :: x(5) = 123
end type xyz
type (xyz) :: a
write(buf1,*) a%x
write(buf2,*) a
if (buf1.ne.buf2) then
print*, buf1
print*, buf2
call abort
endif
end
We now give a todo error:
[tobi@marktplatz tests]$ gfortran pr15364.f90
pr15364.f90: In function `MAIN__':
pr15364.f90:8: fatal error: gfc_todo: Not Implemented: IO of arrays in derived types
compilation terminated.
[tobi@marktplatz tests]$
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Keywords|wrong-code |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15364