view 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 source

! { 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