diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/der_io_4.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/der_io_4.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
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 000000000..cfa1bca66 --- /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 |