diff gcc/testsuite/gfortran.dg/pr95053_3.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc/testsuite/gfortran.dg/pr95053_3.f90	Mon May 25 07:50:57 2020 +0900
@@ -0,0 +1,14 @@
+! { dg-do compile }
+! Related to PR 93499 - this used to ICE.
+
+program p
+  type t(n)
+     integer, kind :: n
+  end type t
+  type u(n)
+     integer, len :: n
+  end type u
+  type(t((0)/0))  :: x  ! { dg-error "does not simplify to an INTEGER" }
+  type(t((0.)/0)) :: y  ! { dg-error "must be of INTEGER type" }
+  type(u(0/(0.))) :: z  ! { dg-error "must be of INTEGER type" }
+end