OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [extends_13.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 47601: [OOP] Internal Error: mio_component_ref(): Component not found
4
!
5
! Contributed by Rich Townsend 
6
 
7
module type_definitions
8
  implicit none
9
  type :: matching
10
     integer :: n = -999
11
  end type
12
  type, extends(matching) :: ellipse
13
  end type
14
end module type_definitions
15
 
16
module elliptical_elements
17
  implicit none
18
contains
19
  function line(e) result(a2n)
20
    use type_definitions
21
    type(ellipse), intent(in) :: e
22
    complex, dimension(e%N) :: a2n   ! <- change "e%N" to "10"
23
  end function line
24
end module
25
 
26
  use type_definitions
27
  use elliptical_elements
28
end
29
 
30
! { dg-final { cleanup-modules "type_definitions elliptical_elements" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.