public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pault at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/22571] Reject derived types for dummy arguments declared in the subroutine unless they are SEQUENCE
Date: Tue, 03 Oct 2006 15:06:00 -0000	[thread overview]
Message-ID: <20061003150621.31231.qmail@sourceware.org> (raw)
In-Reply-To: <bug-22571-6642@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from pault at gcc dot gnu dot org  2006-10-03 15:06 -------
(In reply to comment #5)

> The problem lies in the absence of global actual/formal argument checking;
> where there is an explicit interface, all works correctly.

Actually, it is not as bad as I thought:
(i)'p' being a non-sequence type dummy in a non-contained procedure should
generate an error because there is no way in which type association can occur
between the caller and 'a'.
(ii) The same is true of the actual argument in the call to 'a' from 'b'; since
'a' is external, a sequence type is required.

Paul 


-- 


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


  parent reply	other threads:[~2006-10-03 15:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-22571-6642@http.gcc.gnu.org/bugzilla/>
2006-01-07  5:47 ` pinskia at gcc dot gnu dot org
2006-02-11 21:20 ` pinskia at gcc dot gnu dot org
2006-06-23  8:25 ` paul dot richard dot thomas at cea dot fr
2006-10-03 15:06 ` pault at gcc dot gnu dot org [this message]
2007-08-14 14:11 ` fxcoudert at gcc dot gnu dot org
2007-08-14 15:48 ` burnus at gcc dot gnu dot org
2007-08-14 20:26 ` fxcoudert at gcc dot gnu dot org
2007-10-07 17:16 ` tobi at gcc dot gnu dot org
2008-12-05 16:29 ` jv244 at cam dot ac dot uk
2009-03-30 19:36 ` pault at gcc dot gnu dot org
2009-04-10 22:13 ` dfranke at gcc dot gnu dot org
2009-12-08 21:33 ` dfranke at gcc dot gnu dot org
2010-05-08 20:07 ` dfranke at gcc dot gnu dot org
2005-07-20 15:54 [Bug fortran/22571] New: error needed jv244 at cam dot ac dot uk
2005-07-22 11:56 ` [Bug fortran/22571] Reject derived types for dummy arguments declared in the subroutine unless they are SEQUENCE tkoenig 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=20061003150621.31231.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).