This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, fortran] PR42736 - [4.3/4.4/4.5 Regression] Wrong-code with allocatable or pointer components in elemental functions
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>, Tobias Burnus <burnus at net-b dot de>
- Date: Thu, 21 Jan 2010 06:48:31 +0100
- Subject: [Patch, fortran] PR42736 - [4.3/4.4/4.5 Regression] Wrong-code with allocatable or pointer components in elemental functions
- References: <339c37f21001180708g16287139u260ad0019d6fb7a3@mail.gmail.com>
This is a more conservative patch than that posted on Monday because
it does not touch dependency checking but fixes the segfault directly.
It is more suited to this phase of 4.5 since it only touches cases
that exhibit the problem. The comment in the patch explains how it
works. The testcase is the same.
Bootstrapped and regtested on FC9/x86_64 - OK for trunk, then 4.4 and 4.3?
Paul
2010-01-21 Paul Thomas <pault@gcc.gnu.org>
PR fortran/42736
* trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
is required, turn any trailing array elements after a range
into ranges so that offsets can be calculated.
2010-01-21 Paul Thomas <pault@gcc.gnu.org>
PR fortran/42736
* gfortran.dg/dependency_25.f90 : New test.