public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/103794] ICE in gfc_check_reshape, at fortran/check.c:4727
Date: Wed, 24 May 2023 19:51:37 +0000	[thread overview]
Message-ID: <bug-103794-4-ta7W6oh5ZD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103794-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103794

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:5fd5d8fb744fd9251d04e4b17d04f2340e6a283b

commit r14-1174-g5fd5d8fb744fd9251d04e4b17d04f2340e6a283b
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun May 21 22:25:29 2023 +0200

    Fortran: checking and simplification of RESHAPE intrinsic [PR103794]

    gcc/fortran/ChangeLog:

            PR fortran/103794
            * check.cc (gfc_check_reshape): Expand constant arguments SHAPE and
            ORDER before checking.
            * gfortran.h (gfc_is_constant_array_expr): Add prototype.
            * iresolve.cc (gfc_resolve_reshape): Expand constant argument
SHAPE.
            * simplify.cc (is_constant_array_expr): If array is determined to
be
            constant, expand small array constructors if needed.
            (gfc_is_constant_array_expr): Wrapper for is_constant_array_expr.
            (gfc_simplify_reshape): Fix check for insufficient elements in
SOURCE
            when no padding specified.

    gcc/testsuite/ChangeLog:

            PR fortran/103794
            * gfortran.dg/reshape_10.f90: New test.
            * gfortran.dg/reshape_11.f90: New test.

  parent reply	other threads:[~2023-05-24 19:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 18:17 [Bug fortran/103794] New: " gscfq@t-online.de
2021-12-21 20:09 ` [Bug fortran/103794] " anlauf at gcc dot gnu.org
2023-05-21 20:50 ` anlauf at gcc dot gnu.org
2023-05-24 19:51 ` cvs-commit at gcc dot gnu.org [this message]
2023-05-25 17:14 ` anlauf at gcc dot gnu.org

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=bug-103794-4-ta7W6oh5ZD@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).