view gcc/testsuite/gfortran.dg/allocate_derived_3.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
line wrap: on
line source

! { dg-do compile }
!
! PR 44929: [OOP] Parsing error of derived type name starting with 'REAL'
!
! Contributed by Satish.BD <bdsatish@gmail.com>

 type :: real_type
 end type
 class(real_type), allocatable :: obj
 real(8), allocatable :: r8

 allocate(real_type :: obj)

 allocate( real(kind=8) :: r8)
 allocate(real(8)  :: r8 )

end