This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/21104] Segmentation fault on correct code


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-04-19 16:15 -------
Further reduced testcase:

module perdida_m
contains
  subroutine perdida (z, x)
    real, dimension (:) :: x, z
    z = generalized_hookes_law (x) + 1.0
  end subroutine perdida

  function generalized_hookes_law (x) result (z)
    real, dimension (3) :: z, x
    z = x
  end function generalized_hookes_law
end module perdida_m

program test
  use perdida_m
  real ::  x(3) = 42.0
  real ::  y(3)
  call perdida (y, x)
  print *, y
end


Lahey/Fujitsu Fortran 95 Source Check Output

Compiling program unit perdida_m at line 1:
Compiling program unit test at line 13:
Encountered 0 errors, 0 warnings, 0 informations in file SOURCE.F90.
Compiling file SOURCE.F90.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21104


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]