Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gfortran.dg / realloc_on_assign_21.f90
blob5853b78d41c242ed92c27f71aaecb234b759efa0
1 ! { dg-do compile }
2 ! { dg-options "-fno-realloc-lhs" }
4 ! PR fortran/43366
6 ! Invalid assignment to an allocatable polymorphic var.
8 type t
9 end type t
10 class(t), allocatable :: var
12 var = t() ! { dg-error "Assignment to an allocatable polymorphic variable at .1. requires '-frealloc-lhs'" }
13 end