This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21104] Segmentation fault on correct code
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2005 16:15:19 -0000
- Subject: [Bug fortran/21104] Segmentation fault on correct code
- References: <20050419120240.21104.paulthomas2@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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