modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_58.f90
blobfceb575432d574049a90a6c69c622d9bef32dcea
1 ! { dg-do compile }
3 ! PR 68440: [OOP] ICE on declaring class variable with wrong attribute
5 ! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
7 subroutine s
8 type t
9 end type
10 class(t), parameter :: x = t() ! { dg-error "cannot have the PARAMETER attribute" }
11 class(t), parameter :: y = x ! { dg-error "cannot have the PARAMETER attribute" }
12 class(t) :: z = t() ! { dg-error "must be dummy, allocatable or pointer" }
13 end