re PR fortran/83741 (ICE in gfc_match_allocate, at fortran/match.c:4074)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 9 Jan 2018 01:26:17 +0000 (01:26 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 9 Jan 2018 01:26:17 +0000 (01:26 +0000)
2018-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>

PR Fortran/83741
* gfortran.dg/allocate_assumed_charlen_3.f90: New test.

From-SVN: r256366

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_assumed_charlen_3.f90 [new file with mode: 0644]

index 9b0f827349fa63cefeaa49949ddde7a75c5bcfaa..034c30f26a933d84cc6f1518b29efafa66531685 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       PR Fortran/83741
+       * gfortran.dg/allocate_assumed_charlen_3.f90: New test.
+
 2018-01-08  Chih-Mao Chen <pkmx.tw@gmail.com>
            Monk Chiang  <sh.chiang04@gmail.com>
 
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 (file)
index 0000000..2380f7b
--- /dev/null
@@ -0,0 +1,7 @@
+! { dg-do compile }
+! PR Fortran/83741
+! Contributed by Gerhard Steinmetz <gscfq at t-online dot de>
+program p
+   allocate (character(*) :: x) ! { dg-error "Incompatible allocate-object" }
+end
+