This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45745] [4.6 Regression] ICE in gfc_conv_array_stride
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2010 15:12:06 -0000
- Subject: [Bug fortran/45745] [4.6 Regression] ICE in gfc_conv_array_stride
- References: <bug-45745-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mikael at gcc dot gnu dot org 2010-09-22 15:12 -------
Patch 4/5 in the patchset(http://gcc.gnu.org/ml/fortran/2010-09/msg00369.html)
changed this:
secss = ss;
/* Look for the SS for this function. */
while (secss != gfc_ss_terminator
&& (secss->type != GFC_SS_FUNCTION || secss->expr != expr))
secss = secss->next;
[...]
if (secss == gfc_ss_terminator)
{
/* Elemental function. */
to:
if (ss->expr != expr)
{
/* Elemental function. */
But to be equivalent to the loop exit condition, it should be:
if (ss->expr != expr || ss->type != GFC_SS_FUNCTION)
{
/* Elemental function. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45745