Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gfortran.dg/extends_13.f03 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gfortran.dg/extends_13.f03 Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,28 @@ +! { dg-do compile } +! +! PR 47601: [OOP] Internal Error: mio_component_ref(): Component not found +! +! Contributed by Rich Townsend <townsend@astro.wisc.edu> + +module type_definitions + implicit none + type :: matching + integer :: n = -999 + end type + type, extends(matching) :: ellipse + end type +end module type_definitions + +module elliptical_elements + implicit none +contains + function line(e) result(a2n) + use type_definitions + type(ellipse), intent(in) :: e + complex, dimension(e%N) :: a2n ! <- change "e%N" to "10" + end function line +end module + + use type_definitions + use elliptical_elements +end