annotate gcc/testsuite/gfortran.dg/class_array_19.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 57285: [OOP] ICE on invalid: "gfc_array_dimen_size(): Bad dimension" due to SIZE intrinsic with invalid dim on CLASS dummy
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Lorenz Hüdepohl <bugs@stellardeath.org>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 type type_t
kono
parents:
diff changeset
8 end type
kono
parents:
diff changeset
9 contains
kono
parents:
diff changeset
10 subroutine foo(a)
kono
parents:
diff changeset
11 class(type_t), intent(in) :: a(:)
kono
parents:
diff changeset
12 type(type_t) :: c(size(a,dim=2)) ! { dg-error "is not a valid dimension index" }
kono
parents:
diff changeset
13 end subroutine
kono
parents:
diff changeset
14 end