Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/pdt_9.f03 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! Test the fix for PR82168 in which the declarations for 'a' ! and 'b' threw errors even though they are valid. ! ! Contributed by <physiker@toast2.net> ! module mod implicit none integer, parameter :: dp = kind (0.0d0) type, public :: v(z, k) integer, len :: z integer, kind :: k = kind(0.0) real(kind = k) :: e(z) end type v end module mod program bug use mod implicit none type (v(2)) :: a ! Missing parameter replaced by initializer. type (v(z=:, k=dp)), allocatable :: b ! Keyword was not working for '*' or ':' end program bug