From: Jerry DeLisle Date: Thu, 9 Oct 2008 04:14:48 +0000 (+0000) Subject: re PR libfortran/37707 (Namelist read of array of derived type incorrect) X-Git-Tag: releases/gcc-4.4.0~2112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdb148c194bac4a574cb77ee2522e418b9681860;p=thirdparty%2Fgcc.git re PR libfortran/37707 (Namelist read of array of derived type incorrect) 2008-10-08 Jerry DeLisle * gcc.dg/vect/ggc-pr37574.c: Cleanup "vect" tree dump. diff --git a/gcc/testsuite/gfortran.dg/namelist_54.f90 b/gcc/testsuite/gfortran.dg/namelist_54.f90 new file mode 100644 index 000000000000..641964bf1288 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/namelist_54.f90 @@ -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