public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 Date: Tue, 30 Nov 2021 20:48:26 +0000 [thread overview] Message-ID: <bug-103505-4-PratONR9Nr@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103505-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Priority|P3 |P4 --- Comment #2 from kargl at gcc dot gnu.org --- diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c index 6552eaf3b0c..1b2f5b310a7 100644 --- a/gcc/fortran/array.c +++ b/gcc/fortran/array.c @@ -492,6 +492,9 @@ match_array_element_spec (gfc_array_spec *as) if (!gfc_expr_check_typed (*upper, gfc_current_ns, false)) return AS_UNKNOWN; + if ((*upper)->expr_type != EXPR_CONSTANT) + gfc_simplify_expr (*upper,0); + if (((*upper)->expr_type == EXPR_CONSTANT && (*upper)->ts.type != BT_INTEGER) || ((*upper)->expr_type == EXPR_FUNCTION
next prev parent reply other threads:[~2021-11-30 20:48 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-30 18:47 [Bug fortran/103505] New: " gscfq@t-online.de 2021-11-30 20:44 ` [Bug fortran/103505] " anlauf at gcc dot gnu.org 2021-11-30 20:48 ` kargl at gcc dot gnu.org [this message] 2021-12-01 9:25 ` [Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 since r8-7594-g078c5aff5ed83e9c marxin at gcc dot gnu.org 2021-12-01 20:26 ` anlauf at gcc dot gnu.org 2021-12-01 21:00 ` sgk at troutmask dot apl.washington.edu 2021-12-01 21:42 ` anlauf at gcc dot gnu.org 2021-12-01 22:29 ` sgk at troutmask dot apl.washington.edu 2021-12-02 21:51 ` anlauf at gcc dot gnu.org 2021-12-03 20:08 ` cvs-commit at gcc dot gnu.org 2021-12-03 20:26 ` sgk at troutmask dot apl.washington.edu 2021-12-03 21:24 ` anlauf at gcc dot gnu.org 2021-12-04 21:31 ` cvs-commit at gcc dot gnu.org 2021-12-19 20:29 ` cvs-commit at gcc dot gnu.org 2021-12-19 21:00 ` [Bug fortran/103505] [9 Regression] " anlauf at gcc dot gnu.org 2022-01-17 9:01 ` rguenth at gcc dot gnu.org 2022-05-27 9:51 ` rguenth 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-103505-4-PratONR9Nr@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: linkBe 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).