public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/16907] New: Non-integer array indices rejected Date: Fri, 06 Aug 2004 22:26:00 -0000 [thread overview] Message-ID: <20040806222501.16907.reichelt@gcc.gnu.org> (raw) The following code is accepted without warning by g77, but rejected by gfortran: ==================================== integer I, A(10) I=A(1.0) end ==================================== In file bug.f:2 I=A(1.0) 1 Error: Array index at (1) must be of INTEGER type But I suppose there's lots of code containing non-integer array indices so IMHO this should only be a warning in gfortran (and an error with -pedantic like in g77). This issue is similar to the non-integer loop variables in PR 16222. -- Summary: Non-integer array indices rejected Product: gcc Version: 3.5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16907
next reply other threads:[~2004-08-06 22:26 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-06 22:26 reichelt at gcc dot gnu dot org [this message] 2004-08-07 22:07 ` [Bug fortran/16907] " pinskia at gcc dot gnu dot org 2005-01-06 14:41 ` tobi at gcc dot gnu dot org 2005-03-13 18:46 ` cvs-commit at gcc dot gnu dot org 2005-03-13 19:08 ` cvs-commit at gcc dot gnu dot org 2005-03-13 19:09 ` cvs-commit at gcc dot gnu dot org 2005-03-13 19:10 ` tobi at gcc dot gnu dot org 2005-04-20 2:19 ` pinskia 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=20040806222501.16907.reichelt@gcc.gnu.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).