Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/allocate_scalar_with_shape.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 (2020-05-25) |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR fortran/41940 integer, allocatable :: a TYPE :: x integer, allocatable :: a END TYPE TYPE (x) :: y allocate(a(4)) ! { dg-error "Shape specification for allocatable scalar" } allocate(y%a(4)) ! { dg-error "Shape specification for allocatable scalar" } end