public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jerry DeLisle <jvdelisle@charter.net>
To: Harald Anlauf <anlauf@gmx.de>, fortran <fortran@gcc.gnu.org>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] PR fortran/99840 - [8/9/10/11 Regression] ICE in gfc_simplify_matmul, at fortran/simplify.c:4777
Date: Wed, 31 Mar 2021 17:28:55 -0700	[thread overview]
Message-ID: <9fa9af56-f214-26d7-9b4e-b3759f2a4ee6@charter.net> (raw)
In-Reply-To: <trinity-359a6837-d01d-45cb-9ae7-448516cf26c6-1617224939660@3c-app-gmx-bap04>

Yes OK for trunk and affected branches.

Thanks,

Jerry

On 3/31/21 2:08 PM, Harald Anlauf via Fortran wrote:
> Dear all,
>
> the simplification of the TRANSPOSE of a zero-sized array would lead to
> an ICE if the result was used in a subsequent simplification of a MATMUL.
> The reason was the lack of the proper initialization of the shape, which
> is mpz_t.  Use mpz_init_set instead of mpz_set.
>
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
>
> Since this is a regression, backport to all affected branches?
>
> Thanks,
> Harald
>
>
> PR fortran/99840 - ICE in gfc_simplify_matmul, at fortran/simplify.c:4777
>
> The simplification of the transposition of a constant array shall properly
> initialize and set the shape of the result.
>
> gcc/fortran/ChangeLog:
>
> 	PR fortran/99840
> 	* simplify.c (gfc_simplify_transpose): Properly initialize
> 	resulting shape.
>
> gcc/testsuite/ChangeLog:
>
> 	PR fortran/99840
> 	* gfortran.dg/transpose_5.f90: New test.
>


      reply	other threads:[~2021-04-01  0:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 21:08 Harald Anlauf
2021-04-01  0:28 ` Jerry DeLisle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9fa9af56-f214-26d7-9b4e-b3759f2a4ee6@charter.net \
    --to=jvdelisle@charter.net \
    --cc=anlauf@gmx.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).