public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eedelman at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/31564] Error: Type/rank mismatch in argument Date: Mon, 28 May 2007 18:51:00 -0000 [thread overview] Message-ID: <20070528185103.27386.qmail@sourceware.org> (raw) In-Reply-To: <bug-31564-14284@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from eedelman at gcc dot gnu dot org 2007-05-28 18:51 ------- (In reply to comment #3) > (In reply to comment #2) > > Created an attachment (id=13618) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13618&action=view) [edit] > > decl.c patch (not check-gfortran tested) > > > > Erik, are you still working on this? > > Officially, yes :-) > I.e., I began, but now I haven't had time to look at it for a couple of weeks. > Just go ahead and fix it if you are interested. Just to add one more data point: It's not just procedure arguments that are problematic; it's expression like foo%array(variable) in general, where foo is a PARAMETER. E.g. this piece of code is also rejected: SUBROUTINE cdf_beta() TYPE :: the_distribution INTEGER :: parameters(1) END TYPE the_distribution TYPE (the_distribution), PARAMETER :: the_beta = the_distribution((/0/)) INTEGER :: which, pooh which = 1 pooh = the_beta%parameters(which) END SUBROUTINE cdf_beta erik:~/gcc$ gfortran pr31564.f90 pr31564.f90:12.8: pooh = the_beta%parameters(which) 1 Error: Incompatible ranks 0 and 1 in assignment at (1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31564
next prev parent reply other threads:[~2007-05-28 18:51 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-04-13 17:48 [Bug fortran/31564] New: " michael dot a dot richmond at nasa dot gov 2007-04-13 18:05 ` [Bug fortran/31564] " kargl at gcc dot gnu dot org 2007-04-13 18:40 ` burnus at gcc dot gnu dot org 2007-04-22 17:49 ` eedelman at gcc dot gnu dot org 2007-05-27 23:40 ` burnus at gcc dot gnu dot org 2007-05-28 15:41 ` eedelman at gcc dot gnu dot org 2007-05-28 18:51 ` eedelman at gcc dot gnu dot org [this message] 2007-06-03 19:28 ` eedelman at gcc dot gnu dot org 2007-08-18 6:04 ` pault at gcc dot gnu dot org 2007-09-04 18:16 ` pault at gcc dot gnu dot org 2007-09-05 13:35 ` pault at gcc dot gnu dot org 2007-09-05 13:38 ` pault at gcc dot gnu dot org 2007-09-06 11:56 ` patchapp at dberlin 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=20070528185103.27386.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).