Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/charlen_01.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 fortran/65173 program min_obj implicit none integer, parameter :: a = 128 type :: param_t integer :: n= 0 real*8, dimension(256), allocatable :: x ! { dg-error "must have a deferred shape" } real*8, dimension(2,256), allocatable :: bounds ! { dg-error "must have a deferred shape" } character(a), dimension(256), allocatable :: names ! { dg-error "must have a deferred shape" } end type param_t contains subroutine extrace_params_from_section ( ) character(*), dimension(), parameter :: & ! { dg-error "expression in array specification" } & char_params = ['element', 'parametrization'] end subroutine extrace_params_from_section end program min_obj