Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/class_array_19.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 57285: [OOP] ICE on invalid: "gfc_array_dimen_size(): Bad dimension" due to SIZE intrinsic with invalid dim on CLASS dummy ! ! Contributed by Lorenz Hüdepohl <bugs@stellardeath.org> type type_t end type contains subroutine foo(a) class(type_t), intent(in) :: a(:) type(type_t) :: c(size(a,dim=2)) ! { dg-error "is not a valid dimension index" } end subroutine end