From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5576 invoked by alias); 19 Apr 2005 16:15:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5540 invoked by uid 48); 19 Apr 2005 16:15:19 -0000 Date: Tue, 19 Apr 2005 16:15:00 -0000 Message-ID: <20050419161519.5539.qmail@sourceware.org> From: "fxcoudert at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050419120240.21104.paulthomas2@wanadoo.fr> References: <20050419120240.21104.paulthomas2@wanadoo.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/21104] Segmentation fault on correct code X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg02570.txt.bz2 List-Id: ------- 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