public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/36153] ICE on size with kind parameter Date: Tue, 06 May 2008 14:43:00 -0000 [thread overview] Message-ID: <20080506144307.31247.qmail@sourceware.org> (raw) In-Reply-To: <bug-36153-15996@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from burnus at gcc dot gnu dot org 2008-05-06 14:43 ------- Confirmed. Note: Using -std=f95 the kind= is properly rejected. ==16567== Invalid read of size 4 ==16567== at 0x4605FD: gfc_resolve_expr (resolve.c:2310) ==16567== by 0x465625: resolve_code (resolve.c:6195) ==16567== by 0x468D1B: gfc_resolve_blocks (resolve.c:5988) ==16567== by 0x46560C: resolve_code (resolve.c:6187) ==16567== by 0x466F40: resolve_codes (resolve.c:9121) I think the following comparison does not make sense for KIND= (I have only glanced at it): for (arg = expr->value.function.actual; arg; arg = arg->next) { if (inquiry && arg->next != NULL && arg->next->expr) { if (arg->next->expr->expr_type != EXPR_CONSTANT) break; if ((int)mpz_get_si (arg->next->expr->value.integer) < arg->expr->rank) break; I think this function still assumes that one uses only DIM= and not KIND=. The failing line is the mpz_get_si, although that should work? Allowed options are: SIZE (ARRAY [, DIM, KIND]) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-valid-code Known to fail| |4.3.1 4.4.0 Last reconfirmed|0000-00-00 00:00:00 |2008-05-06 14:43:06 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36153
next prev parent reply other threads:[~2008-05-06 14:43 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-05-06 11:06 [Bug fortran/36153] New: " J dot Hogg at rl dot ac dot uk 2008-05-06 14:43 ` burnus at gcc dot gnu dot org [this message] 2008-05-06 15:18 ` [Bug fortran/36153] " kargl at gcc dot gnu dot org 2008-08-29 23:21 ` [Bug fortran/36153] ICE on size with kind parameter [F2003] kargl at gcc dot gnu dot org 2008-09-06 15:30 ` burnus at gcc dot gnu dot org 2008-09-06 15:57 ` burnus at gcc dot gnu dot 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=20080506144307.31247.qmail@sourceware.org \ --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).