public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/33162] INTRINSIC functions as ACTUAL argument
Date: Sun, 21 Oct 2007 00:15:00 -0000	[thread overview]
Message-ID: <20071021001546.26788.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33162-13404@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2007-10-21 00:15 -------
This patch:

Index: interface.c
===================================================================
--- interface.c (revision 129496)
+++ interface.c (working copy)
@@ -1679,8 +1679,9 @@ compare_actual_formal (gfc_actual_arglis
            return 0;

        }
-      else if (!compare_parameter (f->sym, a->expr,
-                                  ranks_must_agree || rank_check,
is_elemental))
+      else if (a->expr->ts.type != BT_PROCEDURE 
+              && !compare_parameter (f->sym, a->expr, ranks_must_agree
+                                     || rank_check, is_elemental))
        {
          if (where)
            gfc_error ("Type/rank mismatch in argument '%s' at %L",

Allows the test case in comment #1 to compile and run correctly with no
regressions in the test suite.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-21 00:15:45
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33162


  parent reply	other threads:[~2007-10-21  0:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 16:29 [Bug fortran/33162] New: Type checking absent for specific names of INTRINSIC functions burnus at gcc dot gnu dot org
2007-09-05 14:14 ` [Bug fortran/33162] INTRINSIC functions as ACTUAL argument burnus at gcc dot gnu dot org
2007-10-21  0:15 ` jvdelisle at gcc dot gnu dot org [this message]
2007-10-21  3:34 ` jvdelisle at gcc dot gnu dot org
2007-10-21  9:30 ` burnus at gcc dot gnu dot org
2007-10-21 10:44 ` burnus at gcc dot gnu dot org
2007-10-21 16:39 ` jvdelisle at gcc dot gnu dot org
2007-10-21 21:32 ` jvdelisle at gcc dot gnu dot org
2007-10-22  6:56 ` burnus at gcc dot gnu dot org
2007-10-23  1:42 ` jvdelisle at gcc dot gnu dot org
2007-10-27  0:54 ` jvdelisle at gcc dot gnu dot org
2007-10-27  0:57 ` jvdelisle at gcc dot gnu dot org
2007-10-27 21:07 ` burnus at gcc dot gnu dot org
2007-10-31  4:00 ` patchapp at dberlin dot org
2007-10-31 14:27 ` jvdelisle at gcc dot gnu dot org
2007-10-31 14:31 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:26 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:41 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:56 ` jvdelisle at gcc dot gnu dot org
2007-11-02 20:53 ` jaydub66 at gmail dot com
2007-11-03 22:02 ` jvdelisle at gcc dot gnu dot org
2007-11-12  5:56 ` patchapp at dberlin dot org
2007-11-14  0:59 ` jvdelisle at gcc dot gnu dot org
2007-11-14  1:06 ` jvdelisle at gcc dot gnu dot org
2007-11-14  1:17 ` jvdelisle 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=20071021001546.26788.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: 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).