From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8795 invoked by alias); 29 Feb 2008 20:24:00 -0000 Received: (qmail 8030 invoked by uid 48); 29 Feb 2008 20:23:17 -0000 Date: Fri, 29 Feb 2008 20:24:00 -0000 Message-ID: <20080229202317.8029.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35299] scope of variables in statement function do not acquire rank from host In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg03002.txt.bz2 ------- Comment #4 from fxcoudert at gcc dot gnu dot org 2008-02-29 20:23 ------- (In reply to comment #3) > The dummy arguments have a scope of the statement function. Each > dummy argument has the same type and type parameters as the > entity of the same name in the scoping unit containing the statement > function. > > Note, this passage does not include rank. No, but it does not say that they are scalar either. It does not say "Each dummy argument is a scalar of the same type and type parameters...". If we follow this interpretation, then what does "The function-name and each dummy-arg-name shall be specified, explicitly or implicitly, to be scalar" mean? In your (and Richard Maine's and ...) reading, the dummy arguments are by definition scalar, and so how can they be "specified, explicitly or implicitly, to be scalar". Or, to say it the other way around, let's say that I want to break this particular constraint, how do I explicitly specify one of my dummy arguments not to be a scalar? I'm thoroughly confused. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35299