From: Jerry DeLisle Date: Thu, 26 Aug 2010 02:12:49 +0000 (+0000) Subject: re PR fortran/41859 (ICE on invalid expression involving DT with pointer components... X-Git-Tag: releases/gcc-4.6.0~4836 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=604bbfb7faa068bdfbbf961497fd18e773ec7845;p=thirdparty%2Fgcc.git re PR fortran/41859 (ICE on invalid expression involving DT with pointer components in I/O) 2010-08-25 Jerry DeLisle PR libfortran/41859 * gfortran.dg/der_io_4.f90: New test. From-SVN: r163561 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 15dad787affd..90494f127f87 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-08-25 Jerry DeLisle + + PR libfortran/41859 + * gfortran.dg/der_io_4.f90: New test. + 2010-08-25 Jakub Jelinek PR rtl-optimization/44858 diff --git a/gcc/testsuite/gfortran.dg/der_io_4.f90 b/gcc/testsuite/gfortran.dg/der_io_4.f90 new file mode 100644 index 000000000000..cfa1bca66873 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/der_io_4.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! PR41859 ICE on invalid expression involving DT with pointer components in I/O. +! The parens around p below are significant. + TYPE :: ptype + character, pointer, dimension(:) :: x => null() + END TYPE + TYPE(ptype) :: p + print *, ((((p)))) ! { dg-error "Data transfer element" } +end