re PR libfortran/37707 (Namelist read of array of derived type incorrect)

2008-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org

	PR libfortran/37707
	* gfortran.dg/namelist_54.f90: New test.

From-SVN: r140997
This commit is contained in:
Jerry DeLisle 2008-10-09 04:14:48 +00:00
parent af43ff01e1
commit cdb148c194
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org
PR libfortran/37707
* gfortran.dg/namelist_54.f90: New test.
2008-10-08 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/vect/ggc-pr37574.c: Cleanup "vect" tree dump.

View File

@ -0,0 +1,14 @@
! { dg-do run }
! PR37707 Namelist read of array of derived type incorrect.
type s
integer m
integer n
end type s
type(s) :: a(3)
character*80 :: l = ' &namlis a%m=1,2, a%n=5,6, /'
namelist /namlis/ a
a%m=[87,88,89]
a%n=[97,98,99]
read(l,namlis)
if (a(1)%m /= 1 .or. a(2)%m /= 2 .or. a(1)%n /= 5 .or. a(2)%n /= 6) call abort
end