From 5e884ae3bd258d160d72f41df331f2579c9c8659 Mon Sep 17 00:00:00 2001 From: "Steven G. Kargl" Date: Tue, 9 Jan 2018 01:26:17 +0000 Subject: [PATCH] re PR fortran/83741 (ICE in gfc_match_allocate, at fortran/match.c:4074) 2018-01-08 Steven G. Kargl PR Fortran/83741 * gfortran.dg/allocate_assumed_charlen_3.f90: New test. From-SVN: r256366 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9b0f827349f..034c30f26a9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-08 Steven G. Kargl + + PR Fortran/83741 + * gfortran.dg/allocate_assumed_charlen_3.f90: New test. + 2018-01-08 Chih-Mao Chen Monk Chiang diff --git a/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 b/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 new file mode 100644 index 00000000000..2380f7bfcda --- /dev/null +++ b/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 @@ -0,0 +1,7 @@ +! { dg-do compile } +! PR Fortran/83741 +! Contributed by Gerhard Steinmetz +program p + allocate (character(*) :: x) ! { dg-error "Incompatible allocate-object" } +end + -- 2.30.2