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/29606] New: Internal Error: Derived type I/O should have been handled via the frontend


A somewhat similar issue was described in (fixed?) PR #24862.

$> cat ie.f90
PROGRAM ie
  TYPE foo
    INTEGER :: value
  END TYPE

  TYPE foo_array
    TYPE(foo), DIMENSION(:), POINTER :: array
  END TYPE

  TYPE(foo_array)                :: array_holder
  INTEGER, DIMENSION(:), POINTER :: array_ptr

  ALLOCATE( array_holder%array(3) )
  array_holder%array = (/ foo(1), foo(2), foo(3) /)
  WRITE(*,*) array_holder%array%value

  array_ptr => array_holder%array%value
  WRITE(*,*) array_ptr
END PROGRAM

$> gfortran-svn -g -Wall ie.f90
$> ./a.out
           1           2           3
At line 18 of file ie.f90
Internal Error: Derived type I/O should have been handled via the frontend.

$> gfortran-svn -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../svn/gcc/configure --prefix=$(localpath) --disable-nls
--enable-threads=posix --enable-shared --enable-bootstrap --with-system-zlib
--enable-languages=c,c++,fortran --program-suffix=-svn
Thread model: posix
gcc version 4.3.0 20061023 (experimental)


-- 
           Summary: Internal Error: Derived type I/O should have been
                    handled via the frontend
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: franke dot daniel at gmail dot com
  GCC host triplet: i686-pc-linux-gnu


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


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