Commit a487f59f by Tobias Schlüter Committed by Tobias Schlüter

re PR fortran/16938 (Internal compiler error using constructor of derived type…

re PR fortran/16938 (Internal compiler error using constructor of derived type that is component of derived type)

PR fortran/16938
* gfortran.dg/pr16938.f90: New test.

From-SVN: r88180
parent d19e85e8
2004-09-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/16938
* gfortran.dg/pr16938.f90: New test.
2004-09-27 Mark Mitchell <mark@codesourcery.com>
PR c++/17585
......
! { dg-do run }
! We used to get an internal error in the backend when trying to compile this
! Added some code which verifies that we're actually doing the right thing.
program Array_List
implicit none
type :: Compound
integer :: Count
character (len = 4) :: Name
end type Compound
type :: Table
type (Compound) :: Data (2)
integer :: L_Size
end type Table
type (Table) :: ElementTable
ElementTable%Data(1) = Compound(1,"one")
ElementTable%Data(2) = Compound(2,"two")
ElementTable%L_size = 2
if (elementtable%data(1)%count /= 1) call abort
if (elementtable%data(2)%count /= 2) call abort
if (elementtable%data(1)%name /= "one ") call abort
if (elementtable%data(2)%name /= "two ") call abort
if (elementtable%l_size /= 2) call abort
end program Array_List
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment