annotate gcc/testsuite/gfortran.dg/extends_13.f03 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 47601: [OOP] Internal Error: mio_component_ref(): Component not found
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Rich Townsend <townsend@astro.wisc.edu>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 module type_definitions
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 type :: matching
kono
parents:
diff changeset
10 integer :: n = -999
kono
parents:
diff changeset
11 end type
kono
parents:
diff changeset
12 type, extends(matching) :: ellipse
kono
parents:
diff changeset
13 end type
kono
parents:
diff changeset
14 end module type_definitions
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 module elliptical_elements
kono
parents:
diff changeset
17 implicit none
kono
parents:
diff changeset
18 contains
kono
parents:
diff changeset
19 function line(e) result(a2n)
kono
parents:
diff changeset
20 use type_definitions
kono
parents:
diff changeset
21 type(ellipse), intent(in) :: e
kono
parents:
diff changeset
22 complex, dimension(e%N) :: a2n ! <- change "e%N" to "10"
kono
parents:
diff changeset
23 end function line
kono
parents:
diff changeset
24 end module
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 use type_definitions
kono
parents:
diff changeset
27 use elliptical_elements
kono
parents:
diff changeset
28 end