Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/class_58.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR 68440: [OOP] ICE on declaring class variable with wrong attribute ! ! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> subroutine s type t end type class(t), parameter :: x = t() ! { dg-error "cannot have the PARAMETER attribute" } class(t), parameter :: y = x ! { dg-error "cannot have the PARAMETER attribute" } class(t) :: z = x ! { dg-error "must be dummy, allocatable or pointer" } end