annotate gcc/testsuite/gfortran.dg/typebound_assignment_2.f03 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +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 47463: [OOP] ICE in gfc_add_component_ref
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 hydro_grid
kono
parents:
diff changeset
8 type :: grid_t
kono
parents:
diff changeset
9 contains
kono
parents:
diff changeset
10 procedure :: assign
kono
parents:
diff changeset
11 generic :: assignment(=) => assign
kono
parents:
diff changeset
12 end type grid_t
kono
parents:
diff changeset
13 public :: grid_t
kono
parents:
diff changeset
14 contains
kono
parents:
diff changeset
15 subroutine assign (this, that)
kono
parents:
diff changeset
16 class(grid_t), intent(inout) :: this
kono
parents:
diff changeset
17 class(grid_t), intent(in) :: that
kono
parents:
diff changeset
18 end subroutine assign
kono
parents:
diff changeset
19 end module hydro_grid
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 module hydro_flow
kono
parents:
diff changeset
22 use hydro_grid
kono
parents:
diff changeset
23 type :: flow_t
kono
parents:
diff changeset
24 class(grid_t), allocatable :: gr
kono
parents:
diff changeset
25 end type flow_t
kono
parents:
diff changeset
26 contains
kono
parents:
diff changeset
27 subroutine init_params (this)
kono
parents:
diff changeset
28 class(flow_t), intent(out) :: this
kono
parents:
diff changeset
29 type(grid_t) :: gr
kono
parents:
diff changeset
30 call init_comps(this, gr)
kono
parents:
diff changeset
31 end subroutine init_params
kono
parents:
diff changeset
32 subroutine init_comps (this, gr)
kono
parents:
diff changeset
33 class(flow_t), intent(out) :: this
kono
parents:
diff changeset
34 class(grid_t), intent(in) :: gr
kono
parents:
diff changeset
35 this%gr = gr
kono
parents:
diff changeset
36 end subroutine init_comps
kono
parents:
diff changeset
37 end module hydro_flow