Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/select_type_29.f03 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR 54435: [4.7/4.8 Regression] ICE with SELECT TYPE on a non-CLASS object ! ! Contributed by xarthisius subroutine foo(x) integer :: x select type (x) ! { dg-error "Selector shall be polymorphic" } end select end ! PR 54443: [4.7/4.8 Regression] Segmentation Fault when Compiling for code using Fortran Polymorphic Entities ! ! Contributed by Mark Beyer <mbeyer@cirrusaircraft.com> program class_test type hashnode character(4) :: htype end type class(hashnode), pointer :: hp select type(hp%htype) ! { dg-error "is not a named variable" } end program