Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/select_type_29.f03 @ 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 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