Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/class_array_19.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! | |
3 ! PR 57285: [OOP] ICE on invalid: "gfc_array_dimen_size(): Bad dimension" due to SIZE intrinsic with invalid dim on CLASS dummy | |
4 ! | |
5 ! Contributed by Lorenz Hüdepohl <bugs@stellardeath.org> | |
6 | |
7 type type_t | |
8 end type | |
9 contains | |
10 subroutine foo(a) | |
11 class(type_t), intent(in) :: a(:) | |
12 type(type_t) :: c(size(a,dim=2)) ! { dg-error "is not a valid dimension index" } | |
13 end subroutine | |
14 end |