From owner-sc22wg5@open-std.org  Fri Nov 14 02:44:33 2008
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom7
Delivered-To: sc22wg5-dom7@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id BE588CA5FE5; Fri, 14 Nov 2008 02:44:33 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from mail1.cray.com (mail1.cray.com [136.162.0.111])
	by www2.open-std.org (Postfix) with ESMTP id EFFFDC178D6
	for <sc22wg5@open-std.org>; Fri, 14 Nov 2008 02:44:32 +0100 (CET)
Received: from beaver.us.cray.com (beaver.us.cray.com [172.30.74.51])
	by mail1.cray.com (8.13.6/8.13.3/gw-5323) with ESMTP id mAE1iUPV017871
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 13 Nov 2008 19:44:30 -0600 (CST)
Received: from CFEXFE01.us.cray.com (cfexfe01.us.cray.com [172.30.74.93])
	by beaver.us.cray.com (8.13.8/8.13.3/hub-5273) with ESMTP id mAE1iSSE000862;
	Thu, 13 Nov 2008 19:44:29 -0600
Received: from 44.240.30.172.in-addr.arpa ([192.168.239.46]) by CFEXFE01.us.cray.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959);
	 Thu, 13 Nov 2008 19:33:19 -0600
Message-ID: <491CD5CB.4030003@cray.com>
Date: Thu, 13 Nov 2008 19:35:07 -0600
From: Bill Long <longb@cray.com>
Reply-To: longb@cray.com
Organization: Cray Inc.
User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
MIME-Version: 1.0
To: Robert.Corbett@sun.com
Cc: WG5 <sc22wg5@open-std.org>
Subject: Re: (j3.2006) (SC22WG5.3673) [ukfortran] N1755:	Request	for	new	features
 from MPI Forum
References: <49137AD3.1070402@lrz.de>	<20081111224927.8201CC178D9@www2.open-std.org>	<20081111234923.517C5C178D6@www2.open-std.org>	<20081112001017.26EB3C178D6@www2.open-std.org>	<20081112091351.6581CC178D9@www2.open-std.org>	<491BCB6F.8040406@sun.com>	<20081113072205.9063AC178D9@www2.open-std.org> <491BDF12.8050108@sun.com>
In-Reply-To: <491BDF12.8050108@sun.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 14 Nov 2008 01:33:19.0869 (UTC) FILETIME=[F99B72D0:01C945F8]
X-Cray-VirusStatus: clean
Sender: owner-sc22wg5@open-std.org
Precedence: bulk



Robert Corbett wrote:
> The committe might have intended PROTECTED to be something other than
> a promise made by the programmer, but the standard as written makes it
> exactly that.  Just because INTENT(IN) has a similar defect does not
> make it any the less true.
>
> The standard as written allows a compiler to assume that a variable
> that has the PROTECTED attribute is not definable outside the module,
> but it allows programs to be written that define the variable outside
> of the module and it does not require the processor to detect the error.
> If a programmer writes a program that defines the variable outside the
> module, it is not a standard-conforming program, and so a
> standard-conforming processor is free to do anything whatever when
> compiling or executing the program.  The onus is on the programmer to
> avoid defining the variable outside the module.
>
>   

The first sentence says the standard allows a programmer to do X.  The 
second one seems to say that IF the programmer does X, the program is 
not standard conforming.   That seems a bit contradictory.

Cheers,
Bill


-- 
Bill Long                                   longb@cray.com
Fortran Technical Support    &              voice: 651-605-9024
Bioinformatics Software Development         fax:   651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120

            

