From owner-sc22wg5+sc22wg5-dom9=www.open-std.org@open-std.org  Thu Sep 19 05:07:15 2024
Return-Path: <owner-sc22wg5+sc22wg5-dom9=www.open-std.org@open-std.org>
X-Original-To: sc22wg5-dom9
Delivered-To: sc22wg5-dom9@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 61817357045; Thu, 19 Sep 2024 05:07:15 +0200 (CEST)
Delivered-To: sc22wg5@open-std.org
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2044.outbound.protection.outlook.com [40.107.243.44])
	by www.open-std.org (Postfix) with ESMTP id A2450356FFE
	for <sc22wg5@open-std.org>; Thu, 19 Sep 2024 05:07:13 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=JW+6HQQrK5BNSOI9DtHTJNeUyWJ3uOcuvr4MzAayDavCbfkGakyKBwQ73icui8rheXDye9wulVN5bTQfJBBuO9l0RIVkG1cHA9cCxZQUPb5HvaFgQFy/p+B/6KMgtwWrQFcj5R89KPP0DSOO6l2uvkmxmm9ziXSbPGScosWKs55xqxPLEjzSX7RVaaf5p+YTXrcW4gpYosJYz5ju9AzYMpRX88oyymYbuqq/EnY56sKa8Z8rDTaqpjbuGMf9zhTm7x5wbNu35HrAuyKpKd3zZLfq8t55uSMz17dtcAWIX0k5NqTBIzhpsp87n/D0cDdGKwGQaUiBnSb4LDpIvS/DTw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=bmDoD+IlKPeBK+yLK3NzW7AhJAJ3nLFHx6PhfeRRwRs=;
 b=kdA5hkkkffcdyU4yt8GZ17PdNQ3BR3WkMRsiUyhftJOhEgpOe3NG5JCgrBV2hp6MASTbQLqTQp2/HJmFuR56X4UR29bber/GNW8ZNArR2ggAJH/MQmzVE9oUkYhWfCXtiF3gV1lblsWpoy8IU1Gcm+azDCToTlcCX2x7dPs5Mc3/pfjR581XhCXkol5YlDo4tETNl58P1Z4SJ4yXAGc5Speeramw9mpza9Hq0M6HSevyFRs6md3N06XeMAFd20gSRSXhnGMJhJDrhw+Mq06BksPhrrnFDYF9/1hhiG6kIvZ96NHoFy+marNPseaybQSMYFkVyASim3x3NxHGC3Qmsg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass
 header.d=amd.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=bmDoD+IlKPeBK+yLK3NzW7AhJAJ3nLFHx6PhfeRRwRs=;
 b=e94VqAwumeod3/8PmuOGz34BhtPfrS1o+tK+3uTLdsVhOWR/1CNP++cHi1TKwGf5wKpPLH6jjQw1ejfZqG6J2Qsbie8FYxZnb04LK4HkNW24r7Ix79sI6kgkz44Htzg5Af1TTqOrCPvPB4AyhTbJ0WthALfOhHqz2Yf2Q1IDYL8=
Received: from SA3PR12MB7998.namprd12.prod.outlook.com (2603:10b6:806:320::13)
 by SJ0PR12MB6831.namprd12.prod.outlook.com (2603:10b6:a03:47d::9) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Thu, 19 Sep
 2024 03:07:09 +0000
Received: from SA3PR12MB7998.namprd12.prod.outlook.com
 ([fe80::5339:edd4:3555:7e20]) by SA3PR12MB7998.namprd12.prod.outlook.com
 ([fe80::5339:edd4:3555:7e20%5]) with mapi id 15.20.7962.022; Thu, 19 Sep 2024
 03:07:08 +0000
From: "Klemm, Michael" <Michael.Klemm@amd.com>
To: General J3 interest list <j3@mailman.j3-fortran.org>, 'WG5'
	<sc22wg5@open-std.org>
CC: Malcolm Cohen <malcolm@nag-j.co.jp>
Subject: RE: [J3] [SC22WG5.6609] RE: RE: RE: [ukfortran] intent(in) and value
Thread-Topic: [J3] [SC22WG5.6609] RE: RE: RE: [ukfortran] intent(in) and value
Thread-Index: AQHbCjhNDZGCa+A0BEyI8Fh0iDcQJLJebYPg
Date: Thu, 19 Sep 2024 03:07:08 +0000
Message-ID:
 <SA3PR12MB79986573D23A95E167FD6ECFF6632@SA3PR12MB7998.namprd12.prod.outlook.com>
References:
 <LV3PR12MB90956B210D8135B74A486302CB622@LV3PR12MB9095.namprd12.prod.outlook.com>
 <20240918092035.40F30357023@www.open-std.org>
 <LV3PR12MB90956BC67608F7113F8985D2CB622@LV3PR12MB9095.namprd12.prod.outlook.com>
 <SA3PR12MB7998861FA4DFD31AA1F454EAF6632@SA3PR12MB7998.namprd12.prod.outlook.com>
 <20240919020437.94096357015@www.open-std.org>
In-Reply-To: <20240919020437.94096357015@www.open-std.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
 MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ActionId=64010509-eae5-47a8-b41d-0f67a1282e36;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ContentBits=0;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Enabled=true;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Method=Standard;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Name=AMD
 Internal Distribution
 Only;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SetDate=2024-09-19T03:06:52Z;MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=amd.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SA3PR12MB7998:EE_|SJ0PR12MB6831:EE_
x-ms-office365-filtering-correlation-id: 22aa65ed-68ba-447e-4faf-08dcd8582618
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|366016|376014|38070700018;
x-microsoft-antispam-message-info:
 =?us-ascii?Q?nHiHEEd70LdsRsYEAvk2czvNQ3haUUrLt9A9fFiCc6eF8GkGlN+uSsRb1tEW?=
 =?us-ascii?Q?HQiTwlT9PvSWqSCcCRkdVbbB00cIDwbqgDP32lqbiB+oIr5qTIqz81ZBdnOv?=
 =?us-ascii?Q?5Km5x6RWxC3dh6F1WOL507S31NkvqvZbpU1liJwNfvwR3O/7KmPC/Cbwwp7B?=
 =?us-ascii?Q?V93VY91/02t03+kNFQU9IfkpClvKm6FawQsgCrUijfz3BwFg2GaTgWOG1DK7?=
 =?us-ascii?Q?cm5ymiDHM1q/fnjoszYp9nxdXlEt4VhDIOm3XkB+4wSeL48uPNgk53egI8HQ?=
 =?us-ascii?Q?pMd2OpNYX0NaW/vp1itG+mGxQsQpwxyxKEp9OaW+2mNn9x9A2cA/95xSfkMD?=
 =?us-ascii?Q?Kyt100MYDMcbZ3r+n+ffhtombwMcDvjv28WSH6UjhxK21kh9QZXjY18UxEnF?=
 =?us-ascii?Q?LP7khLoUFpMe2u7TCs5geCfL4mhOAoHUkVtiZewDxJyWCBXiPpshJrRE4ZQV?=
 =?us-ascii?Q?/DofAS2gwZdzDa1tZorO2zBjDBG6q709hH7Ohk+23swKSYZ5SpLTHKYx/P1a?=
 =?us-ascii?Q?P/BdKi2OnAblS9JGjnyTjk4PHPnq70V/+8Nixb6KvxKFrLdhE28fAVOy/4AG?=
 =?us-ascii?Q?O81qGgMrwzVLdeiK3gBt+NfMBIF/lzz2SU3jyv0lDktOOzCK7EgNvcv6l6x8?=
 =?us-ascii?Q?kLUdpsAOAS5edmrsxVDl5opV7L2ULF02QggKTD+NOrYbDXGGIGDED1laGDfc?=
 =?us-ascii?Q?7V8Q0rldHU8Lcylow0pN3bgSBaW5HMWAwEsIcB+Rw6O6U4wu/eGDFV68jmhd?=
 =?us-ascii?Q?4twkRQ+QPZrPuorThhK+lVee4IyXmLCQxlja1dou6zpU2tmVqAtKRLEPyi3k?=
 =?us-ascii?Q?gNDBUn5QGavbCndI2kzsYC8DCZylGoBbN/FM8537WUYy7UNZC9N7RzZgu8VQ?=
 =?us-ascii?Q?s+iRkchW5N8BqZ+pqCEaBahuTK8B2SQG55edsrMPuqDM/8h3sq9Ifc5OczJs?=
 =?us-ascii?Q?xgStTYuSNg1UmUZDMVC1xS2F1XVD2V31mFVBrFogGlSmFIt6AGwSTdW+63Ai?=
 =?us-ascii?Q?1/0Mieq0ekJ84+cv82M7t0r39iPXC1iYXIVBlF7MhVMAC+fJY1oLZBhSd/lJ?=
 =?us-ascii?Q?twzErgfHORoTdsDVzcey9XOPp/9XAFexI4SrgjIp903eU8olweU3KW8jLMRJ?=
 =?us-ascii?Q?KM8zZTDU+jfifOamiYbR63n5EBHEgyvRMm+30plHSJVTz5w8bv3+kmw1LFAk?=
 =?us-ascii?Q?+kp6nqCTVE/3skX4BECV6f0s3RjGmlOQ4deUT9/sHgfTLJI2Uaq10atiqHJ2?=
 =?us-ascii?Q?GJDtrHwN3dMLB0cpIuML65Jx2CV3JhR5o/bXS607aAN7GMqaCttUBk/jXmTb?=
 =?us-ascii?Q?clF5c2H5SBaKxL81fr12jF3xud4pu0jnwv66nIGM/QQUQL+IYm2EEk5ACVmc?=
 =?us-ascii?Q?PrBB+Ldu/vJcjPjN2gO4vfWUeg7W9eWi4y1YKS8+toNUsn4TFw=3D=3D?=
x-forefront-antispam-report:
 CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR12MB7998.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(38070700018);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0:
 =?us-ascii?Q?6SVvhdjiGhwep4/sUka0sLlmLB42rkLDFPo6r45ys3BfkTtbkMJiVt02wGvT?=
 =?us-ascii?Q?6IPLewVl1TluGYQ4HsW72OEtMXhJkW8VmGpxuxlyhQEr9cKzs07swy6k+qxC?=
 =?us-ascii?Q?VWuAsjTUliVX45UdAPoEKLjoIzlNNjQnSWo58rLc2BQCHKOLmRaXv4mKnzcW?=
 =?us-ascii?Q?RRoYN8iQe46yyAArD3u2cJ3e5vhSqdrE2Wk3Yp6zeN6jAcLvvBXNlM7lSKJT?=
 =?us-ascii?Q?E8LWyINm1wzCIYfvDdCToTpFwCi1DjRqW+HU3Bp5KBje7uGA61bJcxG9+C7+?=
 =?us-ascii?Q?shutWmkUpinWSXIJS5rRz+ohWhIuA0GOtD9KCvW4dy6kWzVwIh0bg7DBDMNE?=
 =?us-ascii?Q?2gVT61Kqh1Urdptlfwhk+23RvD1+0Kf9zguKLxXlTmugpbGq/zsW9nOpMWl/?=
 =?us-ascii?Q?zTA8FC99FtO+zNBdI9UiSPpcV58XtkB+5L6v4m5gsiRW5RjSX6gM1UnYQcGR?=
 =?us-ascii?Q?9S4k3p979iUC9Iyp3xFnOexzoHsBlMuJ8L1ZY71We604JWnL0Mpsy+iCRgi8?=
 =?us-ascii?Q?Hq7zWgcMESr4C3V6q6CRWJm/VKdaNCMR+l6OyrTU/3s+FjkFPSpiM2wLmddE?=
 =?us-ascii?Q?rrkFnwHYGnsWKGW5THUpE7ZhTtGIJ/gOybxYImb2M17+uffV1uPFT317oH9N?=
 =?us-ascii?Q?JhMeyLiVhat1LD/KDm/5EessQsD/uJUAEg017PiIR0VyME5JVjuu1MksnFla?=
 =?us-ascii?Q?5ay4Dh37qx10Tls5mfXh8nIkcirdGuCSg+XvQYeiSomb6dndG1YWdf2BhMtD?=
 =?us-ascii?Q?zraxkmPeWOb9iEjD+j/eZeoLT5x8zyRZVVlo7g/js4ipy11a8TOydajO6qgx?=
 =?us-ascii?Q?TfxVvd2vds8HRQu6Fk5dtb+eNVdGMvAcyFsV+/TIRnAjcDOzcJfE1kwB6Huv?=
 =?us-ascii?Q?STmDCRfrULgqV+cO/oXK4e01ak2KZNq5xefpEGDcolfCOc/yvaHePwS4MEWZ?=
 =?us-ascii?Q?Vm/T8ZbOLZbn9L6x5qh8a3fPKlQlSSd6vSQDtxaxMerVPN1P7uJux3Szk7B8?=
 =?us-ascii?Q?iAI+dveWhq9WpoEb/xfvYD5BDMhNpwCOm4FSUouTxDbejitvwzdcMtw2qaJM?=
 =?us-ascii?Q?qY6MBnVQ/i+GULlxreO1O07uKpFay6tBOv4mpEFyzptP75kBqzxu7t2ATUr/?=
 =?us-ascii?Q?L0o40lW2Jm/DnHcPtJrFTPGotc2JLYnanJYVMS1mRYA4GczVL8OdeQqOWPTw?=
 =?us-ascii?Q?1H8aVqxfFlPlLIjmE10d/tvobSyELTcs4qc89bktM9oTTPv4BAK37ErKI+h6?=
 =?us-ascii?Q?VXmGvGsvMr4J1LtGDCmseencEB7Lpldhn6wFl0PLy0FQ8jSdLkdItLzI0vHB?=
 =?us-ascii?Q?shFbJZEgMFqIcRGXMDOzd7KZHvuE8HkK7s7g486K4XjmKozC+Xhgr5i53NfS?=
 =?us-ascii?Q?mC5n4e5e0wok3M2jKWrv+0Ybm+t9aIOhbV6dxE4zfYAINRv0AziA6Xc/U2oy?=
 =?us-ascii?Q?ivf53j8i/3Nr1tAFMSsC/t9EDyBoAwEOHFC3djaPuk89P6jNWdLIMqmnm7Fx?=
 =?us-ascii?Q?69GksY0xUVbr5gtUG2IATX6Vj0QnL45azH03BXn1km4fhHuk+agaxUoh7M9s?=
 =?us-ascii?Q?TOPyq4ZcJ6jlg+ybmI8=3D?=
Content-Type: multipart/alternative;
	boundary="_000_SA3PR12MB79986573D23A95E167FD6ECFF6632SA3PR12MB7998namp_"
MIME-Version: 1.0
X-OriginatorOrg: amd.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SA3PR12MB7998.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 22aa65ed-68ba-447e-4faf-08dcd8582618
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2024 03:07:08.7328
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 0wwsDlcXoH2sO9PksyU+E7UVewdsqF2RwpglZNpw9M6iQ0r9BYN32ZgJhuaqV5VOInajgA5cYqLrMJpvGSPb3Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6831
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

--_000_SA3PR12MB79986573D23A95E167FD6ECFF6632SA3PR12MB7998namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

[AMD Official Use Only - AMD Internal Distribution Only]

Hi Malcom,

OK, thanks!  That makes sense.

Kind regards,
        -michael


From: J3 <j3-bounces@mailman.j3-fortran.org> On Behalf Of Malcolm Cohen via=
 J3
Sent: Thursday, September 19, 2024 10:05 AM
To: 'WG5' <sc22wg5@open-std.org>
Cc: Malcolm Cohen <malcolm@nag-j.co.jp>
Subject: [J3] [SC22WG5.6609] RE: RE: RE: [ukfortran] intent(in) and value

Caution: This message originated from an External Source. Use proper cautio=
n when opening attachments, clicking links, or responding.

Yes.

INTENT(IN) makes the dummy argument non-definable. This may be useful e.g. =
so that later on, in program maintenance, someone doesn't try to change the=
 dummy argument in the expectation that it would change the actual argument=
.

Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.

From: J3 <j3-bounces@mailman.j3-fortran.org<mailto:j3-bounces@mailman.j3-fo=
rtran.org>> On Behalf Of Klemm, Michael via J3
Sent: Thursday, September 19, 2024 10:34 AM
To: Jeff Hammond <jehammond@nvidia.com<mailto:jehammond@nvidia.com>>; Gener=
al J3 interest list <j3@mailman.j3-fortran.org<mailto:j3@mailman.j3-fortran=
.org>>; 'WG5' <sc22wg5@open-std.org<mailto:sc22wg5@open-std.org>>
Cc: Klemm, Michael <Michael.Klemm@amd.com<mailto:Michael.Klemm@amd.com>>; M=
alcolm Cohen <malcolm@nag-j.co.jp<mailto:malcolm@nag-j.co.jp>>
Subject: [J3] [SC22WG5.6608] RE: RE: [ukfortran] intent(in) and value

Hi folks,

Thanks for the clarification!

One more thing: Is it then sensible to have a variable have the attributes =
VALUE and INTENT(IN) at the same time?

From: Jeff Hammond <jehammond@nvidia.com<mailto:jehammond@nvidia.com>>
Sent: Wednesday, September 18, 2024 7:29 PM
To: General J3 interest list <j3@mailman.j3-fortran.org<mailto:j3@mailman.j=
3-fortran.org>>; 'WG5' <sc22wg5@open-std.org<mailto:sc22wg5@open-std.org>>
Cc: Malcolm Cohen <malcolm@nag-j.co.jp<mailto:malcolm@nag-j.co.jp>>
Subject: Re: [J3] [SC22WG5.6606] RE: [ukfortran] intent(in) and value

Caution: This message originated from an External Source. Use proper cautio=
n when opening attachments, clicking links, or responding.

Thanks.  This is useful context and a helpful explanation.

Jeff

From: J3 <j3-bounces@mailman.j3-fortran.org<mailto:j3-bounces@mailman.j3-fo=
rtran.org>> on behalf of Malcolm Cohen via J3 <j3@mailman.j3-fortran.org<ma=
ilto:j3@mailman.j3-fortran.org>>
Date: Wednesday, 18. September 2024 at 12.20
To: 'WG5' <sc22wg5@open-std.org<mailto:sc22wg5@open-std.org>>
Cc: Malcolm Cohen <malcolm@nag-j.co.jp<mailto:malcolm@nag-j.co.jp>>
Subject: [J3] [SC22WG5.6606] RE: [ukfortran] intent(in) and value
External email: Use caution opening links or attachments

Hi Jeff,

It is called "unspecified INTENT" not "default INTENT". That is because it =
is not a default, it is that it is not specified. (ASIDE: I don't think we =
use the phrase in the standard itself, but we do when talking about it.)

R828 by itself does not define the INTENT attribute, it defines some syntax=
 - and that is the syntax for specified intent (it's even called "intent-sp=
ec". The whole of 8.5.10 defines the INTENT attribute, and indeed, there is=
 a paragraph about unspecified intent.

INTENT(INOUT) is very different indeed from unspecified intent. In particul=
ar, INOUT requires that the actual argument be a definable variable. There =
is no such requirement for unspecified intent. With unspecified intent you =
simply have to get it right, viz not reference the dummy argument unless it=
 is defined, and not define the dummy argument unless it is definable. This=
 is the world before the invention of INTENT.

To summarise: with no intent-spec, the intent is not "INOUT", or "INOUT exc=
ept stuff", it is "unspecified", and has the same capabilities and limitati=
ons that it had before Fortran 90.

Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.

From: owner-sc22wg5@open-std.org<mailto:owner-sc22wg5@open-std.org> <owner-=
sc22wg5@open-std.org<mailto:owner-sc22wg5@open-std.org>> On Behalf Of Jeff =
Hammond
Sent: Wednesday, September 18, 2024 4:12 PM
To: WG5 <sc22wg5@open-std.org<mailto:sc22wg5@open-std.org>>
Subject: [ukfortran] [SC22WG5.6604] intent(in) and value

8.5.10 R828 says that INTENT is IN, OUT or INOUT.

8.5.19 C868 says that VALUE cannot be INTENT(OUT) or INTENT(INOUT)

Should I understand that dummy arguments without an INTENT do not have an i=
mplicit intent corresponding to any of the explicit INTENT types?  I have a=
lways assumed that the default INTENT was INOUT, but that cannot be true si=
nce that would conflict with VALUE in the example below.  It seems the defa=
ult INTENT is "INOUT, unless VALUE, in which case it's IN-but-also-assignab=
le".

subroutine foo(a,b)
    implicit none
    integer, value, intent(in) :: a
    integer, value :: b
    ! integer, value, intent(inout) :: c ! not allowed
    ! integer, value, intent(out) :: d ! not allowed
    ! a =3D 21 ! can't assign because intent(in)
    b =3D 23 ! can assign
end subroutine foo

Thanks

Jeff

--_000_SA3PR12MB79986573D23A95E167FD6ECFF6632SA3PR12MB7998namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:10.0pt;
	font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#467886;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<p style=3D"font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;fon=
t-style:normal;font-weight:normal;text-decoration:none;" align=3D"Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Hi Malcom,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">OK, thanks!&nbsp; That makes sense.<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Kind regards,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -michael<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt">
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,sans-serif">From:</span></b><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,sans-serif"> J3 &lt;j3-bounces@mailman.j3-f=
ortran.org&gt;
<b>On Behalf Of </b>Malcolm Cohen via J3<br>
<b>Sent:</b> Thursday, September 19, 2024 10:05 AM<br>
<b>To:</b> 'WG5' &lt;sc22wg5@open-std.org&gt;<br>
<b>Cc:</b> Malcolm Cohen &lt;malcolm@nag-j.co.jp&gt;<br>
<b>Subject:</b> [J3] [SC22WG5.6609] RE: RE: RE: [ukfortran] intent(in) and =
value<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" align=3D"left" width=3D"100%" style=3D"width:100.0%">
<tbody>
<tr>
<td style=3D"background:#FFB900;padding:5.0pt 2.0pt 5.0pt 2.0pt"></td>
<td width=3D"100%" style=3D"width:100.0%;background:#FFF8E5;padding:5.0pt 4=
.0pt 5.0pt 12.0pt">
<div>
<p class=3D"MsoNormal" style=3D"mso-element:frame;mso-element-frame-hspace:=
2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-el=
ement-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style=3D"font-size:12.0pt;color:#222222">Caution:</span></b><span =
style=3D"font-size:12.0pt;color:#222222"> This message originated from an E=
xternal Source. Use proper caution when opening attachments, clicking links=
, or responding.
<o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p=
>&nbsp;</o:p></span></p>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Yes.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">INTENT(IN) makes the dummy argument =
non-definable. This may be useful e.g. so that later on, in program mainten=
ance, someone doesn&#8217;t try to change the dummy argument
 in the expectation that it would change the actual argument.<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Cheers,<o:p></o:p></span></p>
<div>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span style=3D"font-siz=
e:10.5pt;font-family:&quot;Calibri&quot;,sans-serif">--
</span><span lang=3D"EN-GB" style=3D"font-size:10.5pt;font-family:&quot;Cal=
ibri&quot;,sans-serif"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span style=3D"font-siz=
e:10.5pt;font-family:&quot;Calibri&quot;,sans-serif">..............Malcolm =
Cohen, NAG Oxford/Tokyo.</span><span lang=3D"EN-GB" style=3D"font-size:10.5=
pt;font-family:&quot;Calibri&quot;,sans-serif"><o:p></o:p></span></p>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo=
nt-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang=3D"EN-=
GB" style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> =
J3 &lt;<a href=3D"mailto:j3-bounces@mailman.j3-fortran.org">j3-bounces@mail=
man.j3-fortran.org</a>&gt;
<b>On Behalf Of </b>Klemm, Michael via J3<br>
<b>Sent:</b> Thursday, September 19, 2024 10:34 AM<br>
<b>To:</b> Jeff Hammond &lt;<a href=3D"mailto:jehammond@nvidia.com">jehammo=
nd@nvidia.com</a>&gt;; General J3 interest list &lt;<a href=3D"mailto:j3@ma=
ilman.j3-fortran.org">j3@mailman.j3-fortran.org</a>&gt;; 'WG5' &lt;<a href=
=3D"mailto:sc22wg5@open-std.org">sc22wg5@open-std.org</a>&gt;<br>
<b>Cc:</b> Klemm, Michael &lt;<a href=3D"mailto:Michael.Klemm@amd.com">Mich=
ael.Klemm@amd.com</a>&gt;; Malcolm Cohen &lt;<a href=3D"mailto:malcolm@nag-=
j.co.jp">malcolm@nag-j.co.jp</a>&gt;<br>
<b>Subject:</b> [J3] [SC22WG5.6608] RE: RE: [ukfortran] intent(in) and valu=
e<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Hi folks,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Thanks for the clarification!<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">One more thing: Is it then sensible to have a variabl=
e have the attributes VALUE and INTENT(IN) at the same time?<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt">
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,sans-serif">From:</span></b><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,sans-serif"> Jeff Hammond &lt;<a href=3D"ma=
ilto:jehammond@nvidia.com">jehammond@nvidia.com</a>&gt;
<br>
<b>Sent:</b> Wednesday, September 18, 2024 7:29 PM<br>
<b>To:</b> General J3 interest list &lt;<a href=3D"mailto:j3@mailman.j3-for=
tran.org">j3@mailman.j3-fortran.org</a>&gt;; 'WG5' &lt;<a href=3D"mailto:sc=
22wg5@open-std.org">sc22wg5@open-std.org</a>&gt;<br>
<b>Cc:</b> Malcolm Cohen &lt;<a href=3D"mailto:malcolm@nag-j.co.jp">malcolm=
@nag-j.co.jp</a>&gt;<br>
<b>Subject:</b> Re: [J3] [SC22WG5.6606] RE: [ukfortran] intent(in) and valu=
e<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" align=3D"left" width=3D"100%" style=3D"width:100.0%">
<tbody>
<tr>
<td style=3D"background:#FFB900;padding:5.0pt 2.0pt 5.0pt 2.0pt"></td>
<td width=3D"100%" style=3D"width:100.0%;background:#FFF8E5;padding:5.0pt 4=
.0pt 5.0pt 12.0pt">
<div>
<p class=3D"MsoNormal" style=3D"mso-element:frame;mso-element-frame-hspace:=
2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-el=
ement-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style=3D"font-size:12.0pt;color:#222222">Caution:</span></b><span =
style=3D"font-size:12.0pt;color:#222222"> This message originated from an E=
xternal Source. Use proper caution when opening attachments, clicking links=
, or responding.
<o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Thanks.&nbsp; This =
is useful context and a helpful explanation.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Jeff<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
<div id=3D"mail-editor-reference-message-container">
<div>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span lang=3D"EN-G=
B" style=3D"font-size:12.0pt;color:black">From:
</span></b><span lang=3D"EN-GB" style=3D"font-size:12.0pt;color:black">J3 &=
lt;<a href=3D"mailto:j3-bounces@mailman.j3-fortran.org">j3-bounces@mailman.=
j3-fortran.org</a>&gt; on behalf of Malcolm Cohen via J3 &lt;<a href=3D"mai=
lto:j3@mailman.j3-fortran.org">j3@mailman.j3-fortran.org</a>&gt;<br>
<b>Date: </b>Wednesday, 18. September 2024 at 12.20<br>
<b>To: </b>'WG5' &lt;<a href=3D"mailto:sc22wg5@open-std.org">sc22wg5@open-s=
td.org</a>&gt;<br>
<b>Cc: </b>Malcolm Cohen &lt;<a href=3D"mailto:malcolm@nag-j.co.jp">malcolm=
@nag-j.co.jp</a>&gt;<br>
<b>Subject: </b>[J3] [SC22WG5.6606] RE: [ukfortran] intent(in) and value<o:=
p></o:p></span></p>
</div>
<table class=3D"MsoNormalTable" border=3D"1" cellpadding=3D"0" style=3D"bac=
kground:#FFEB9C">
<tbody>
<tr>
<td style=3D"padding:.75pt .75pt .75pt .75pt">
<p class=3D"MsoNormal"><b><span style=3D"font-size:7.5pt;font-family:&quot;=
Verdana&quot;,sans-serif;color:black">External email: Use caution opening l=
inks or attachments</span></b><span style=3D"font-size:7.5pt;font-family:&q=
uot;Verdana&quot;,sans-serif;color:black">
</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p=
>&nbsp;</o:p></span></p>
<div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Hi Jeff,</span><span lang=3D"EN-GB" =
style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">It is called &#8220;unspecified INTE=
NT&#8221; not &#8220;default INTENT&#8221;. That is because it is not a def=
ault, it is that it is not specified. (ASIDE: I don&#8217;t think we use th=
e phrase
 in the standard itself, but we do when talking about it.)</span><span lang=
=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">R828 by itself does not define the I=
NTENT attribute, it defines some syntax &#8211; and that is the syntax for =
specified intent (it&#8217;s even called &#8220;intent-spec&#8221;. The
 whole of 8.5.10 defines the INTENT attribute, and indeed, there is a parag=
raph about unspecified intent.</span><span lang=3D"EN-GB" style=3D"font-siz=
e:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">INTENT(INOUT) is very different inde=
ed from unspecified intent. In particular, INOUT requires that the actual a=
rgument be a definable variable. There is no such
 requirement for unspecified intent. With unspecified intent you simply hav=
e to get it right, viz not reference the dummy argument unless it is define=
d, and not define the dummy argument unless it is definable. This is the wo=
rld before the invention of INTENT.</span><span lang=3D"EN-GB" style=3D"fon=
t-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">To summarise: with no intent-spec, t=
he intent is not &#8220;INOUT&#8221;, or &#8220;INOUT except stuff&#8221;, =
it is &#8220;unspecified&#8221;, and has the same capabilities and limitati=
ons that
 it had before Fortran 90.</span><span lang=3D"EN-GB" style=3D"font-size:12=
.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Cheers,</span><span lang=3D"EN-GB" s=
tyle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<div>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span style=3D"font-siz=
e:10.5pt;font-family:&quot;Calibri&quot;,sans-serif">--
</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></=
p>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span style=3D"font-siz=
e:10.5pt;font-family:&quot;Calibri&quot;,sans-serif">..............Malcolm =
Cohen, NAG Oxford/Tokyo.</span><span lang=3D"EN-GB" style=3D"font-size:12.0=
pt"><o:p></o:p></span></p>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo=
nt-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang=3D"EN-=
GB" style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
<a href=3D"mailto:owner-sc22wg5@open-std.org">owner-sc22wg5@open-std.org</a=
> &lt;<a href=3D"mailto:owner-sc22wg5@open-std.org">owner-sc22wg5@open-std.=
org</a>&gt;
<b>On Behalf Of </b>Jeff Hammond<br>
<b>Sent:</b> Wednesday, September 18, 2024 4:12 PM<br>
<b>To:</b> WG5 &lt;<a href=3D"mailto:sc22wg5@open-std.org">sc22wg5@open-std=
.org</a>&gt;<br>
<b>Subject:</b> [ukfortran] [SC22WG5.6604] intent(in) and value</span><span=
 lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:12.0pt">&nbs=
p;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">8.5.10 R828 says th=
at INTENT is IN, OUT or INOUT.</span><span lang=3D"EN-GB" style=3D"font-siz=
e:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">8.5.19 C868 says th=
at VALUE cannot be INTENT(OUT) or INTENT(INOUT)</span><span lang=3D"EN-GB" =
style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Should I understand=
 that dummy arguments without an INTENT do not have an implicit intent corr=
esponding to any of the explicit INTENT types?&nbsp; I have always assumed =
that the default INTENT was INOUT, but that
 cannot be true since that would conflict with VALUE in the example below.&=
nbsp; It seems the default INTENT is &#8220;INOUT, unless VALUE, in which c=
ase it&#8217;s IN-but-also-assignable&#8221;.</span><span lang=3D"EN-GB" st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">subroutine foo(a,b)=
</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
implicit none</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
integer, value, intent(in) :: a</span><span lang=3D"EN-GB" style=3D"font-si=
ze:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
integer, value :: b</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
! integer, value, intent(inout) :: c ! not allowed</span><span lang=3D"EN-G=
B" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp; &nbsp;=
! integer, value, intent(out) :: d ! not allowed</span><span lang=3D"EN-GB"=
 style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
! a =3D 21 ! can't assign because intent(in)</span><span lang=3D"EN-GB" sty=
le=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;&nbsp;&nbsp; =
b =3D 23 ! can assign</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"=
><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">end subroutine foo<=
/span><span lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Thanks</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">&nbsp;</span><span =
lang=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Jeff</span><span la=
ng=3D"EN-GB" style=3D"font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_SA3PR12MB79986573D23A95E167FD6ECFF6632SA3PR12MB7998namp_--
