Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The University of California Statistics Department; where mean is normal, and deviation standard.


devel / comp.lang.fortran / Re: Can a named-constant in a complex-literal-constant have rank > 0?

SubjectAuthor
* Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
+* Re: Can a named-constant in a complex-literal-constant have rank > 0?jfh
|`* Re: Can a named-constant in a complex-literal-constant have rank > 0?jfh
| +* Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
| |`* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steven G. Kargl
| | `- Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
| +* Re: Can a named-constant in a complex-literal-constant have rank > 0?FortranFan
| |`- Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
| `- Re: Can a named-constant in a complex-literal-constant have rank > 0?Steven G. Kargl
`* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
 +* Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
 |`- Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
 `* Re: Can a named-constant in a complex-literal-constant have rank > 0?jfh
  `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
   +- Re: Can a named-constant in a complex-literal-constant have rank > 0?John
   `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
    `* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
     +- Re: Can a named-constant in a complex-literal-constant have rank > 0?John
     `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      +* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
      |+* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      ||`* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      || `- Re: Can a named-constant in a complex-literal-constant have rank > 0?gah4
      |+* Re: Can a named-constant in a complex-literal-constant have rank > 0?Robin Vowels
      ||`- Re: Can a named-constant in a complex-literal-constant have rank > 0?gah4
      |`* Re: Can a named-constant in a complex-literal-constant have rank > 0?Peter Klausler US
      | `* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
      |  `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      |   `* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steven G. Kargl
      |    `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      |     `* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
      |      `* Re: Can a named-constant in a complex-literal-constant have rank > 0?jfh
      |       `* Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      |        `* Re: Can a named-constant in a complex-literal-constant have rank > 0?Steve Lionel
      |         `- Re: Can a named-constant in a complex-literal-constant have rank > 0?John
      `* Re: Can a named-constant in a complex-literal-constant have rank > 0?gah4
       `- Re: Can a named-constant in a complex-literal-constant have rank > 0?John

Pages:12
Re: Can a named-constant in a complex-literal-constant have rank > 0?

<73f040c2-0f5f-45cb-a1e5-d157bb422378n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3065&group=comp.lang.fortran#3065

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:8d5:0:b0:6fa:9835:bac0 with SMTP id 204-20020a3708d5000000b006fa9835bac0mr7086275qki.735.1667720985740;
Sun, 06 Nov 2022 00:49:45 -0700 (PDT)
X-Received: by 2002:a05:620a:22cf:b0:6fa:1e61:9cda with SMTP id
o15-20020a05620a22cf00b006fa1e619cdamr28789039qki.774.1667720985503; Sun, 06
Nov 2022 00:49:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 6 Nov 2022 00:49:45 -0700 (PDT)
In-Reply-To: <jsoen0F94jvU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=49.185.142.203; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 49.185.142.203
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73f040c2-0f5f-45cb-a1e5-d157bb422378n@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Sun, 06 Nov 2022 07:49:45 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1937
 by: Robin Vowels - Sun, 6 Nov 2022 07:49 UTC

On Sunday, November 6, 2022 at 11:50:44 AM UTC+11, Steve Lionel wrote:
> On 11/5/2022 7:43 PM, John wrote:
> > implicit none
> > print *, (3+10*3,0)
> > print *, (3+10*3)
> > print *, (3,0)
> > end program main
> >
> > Have to say, the results with ifort and nvfortran were still surprising for the first print
> >
> > 33 0
..
> Why? That's clearly a complex literal.
..
3+10*3 looks like an expression to me, not a constant.

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<b2cbb6a9-b5a2-45e0-8acb-2676f378c842n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3066&group=comp.lang.fortran#3066

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:4889:b0:3a5:18e3:8310 with SMTP id fc9-20020a05622a488900b003a518e38310mr33000907qtb.511.1667736234267;
Sun, 06 Nov 2022 04:03:54 -0800 (PST)
X-Received: by 2002:a05:620a:bc2:b0:6cf:468e:b8ce with SMTP id
s2-20020a05620a0bc200b006cf468eb8cemr30852819qki.699.1667736234138; Sun, 06
Nov 2022 04:03:54 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 6 Nov 2022 04:03:53 -0800 (PST)
In-Reply-To: <73f040c2-0f5f-45cb-a1e5-d157bb422378n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:b8db:67a1:6568:2c8f;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:b8db:67a1:6568:2c8f
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <73f040c2-0f5f-45cb-a1e5-d157bb422378n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b2cbb6a9-b5a2-45e0-8acb-2676f378c842n@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: gah4@u.washington.edu (gah4)
Injection-Date: Sun, 06 Nov 2022 12:03:54 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1856
 by: gah4 - Sun, 6 Nov 2022 12:03 UTC

On Sunday, November 6, 2022 at 12:49:47 AM UTC-7, Robin Vowels wrote:

(snip)

> 3+10*3 looks like an expression to me, not a constant.

It is a constant in C. I am not sure about Fortran, which is why this
question is so interesting.

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3067&group=comp.lang.fortran#3067

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:248c:b0:4b8:fbe7:35a0 with SMTP id gi12-20020a056214248c00b004b8fbe735a0mr41878168qvb.75.1667757645901;
Sun, 06 Nov 2022 10:00:45 -0800 (PST)
X-Received: by 2002:a05:622a:1a25:b0:3a5:719c:671b with SMTP id
f37-20020a05622a1a2500b003a5719c671bmr8805759qtb.552.1667757645738; Sun, 06
Nov 2022 10:00:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 6 Nov 2022 10:00:45 -0800 (PST)
In-Reply-To: <jsoen0F94jvU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=12.154.207.45; posting-account=ZT-cAwoAAACx2tBPXm-WZoHIT8sjnGGy
NNTP-Posting-Host: 12.154.207.45
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: pklausler@nvidia.com (Peter Klausler US)
Injection-Date: Sun, 06 Nov 2022 18:00:45 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2152
 by: Peter Klausler US - Sun, 6 Nov 2022 18:00 UTC

On Saturday, November 5, 2022 at 5:50:44 PM UTC-7, Steve Lionel wrote:
> On 11/5/2022 7:43 PM, John wrote:
> > implicit none
> > print *, (3+10*3,0)
> > print *, (3+10*3)
> > print *, (3,0)
> > end program main
> >
> > Have to say, the results with ifort and nvfortran were still surprising for the first print
> >
> > 33 0
> Why? That's clearly a complex literal.

It is not a complex-literal-constant (R718) -- the real and imaginary parts would have to be both signed-int-literal-constant, signed-real-literal-constant, or named constants.

It is not a complex constant expression, either, in standard Fortran, for obvious reasons.

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<jssi5tFs9etU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3068&group=comp.lang.fortran#3068

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
Date: Mon, 7 Nov 2022 09:14:21 -0500
Lines: 18
Message-ID: <jssi5tFs9etU1@mid.individual.net>
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net>
<fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com>
<5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net>
<862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
<44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net JckSg2RjDsQk5fbLdN4TsQlvPW4j6kjPQQNs3teD7oK7V3Aw7Q
Cancel-Lock: sha1:rU6eSKg/bPQe0+nl6O/2ZQfj2mc=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101
Thunderbird/107.0
Content-Language: en-US
In-Reply-To: <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
 by: Steve Lionel - Mon, 7 Nov 2022 14:14 UTC

On 11/6/2022 1:00 PM, Peter Klausler US wrote:
> It is not a complex-literal-constant (R718) -- the real and imaginary parts would have to be both signed-int-literal-constant, signed-real-literal-constant, or named constants.

Agree - I thought I posted a correction yesterday, but don't see it.

NAG Fortran rejects "print *, (3+10*3,0)". Intel Fortran accepts it as
it has an extension allowing a parenthesized I/O list - it will complain
if you ask for standards checking.
--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3070&group=comp.lang.fortran#3070

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:9246:0:b0:6fa:6e0c:e12 with SMTP id u67-20020a379246000000b006fa6e0c0e12mr20382234qkd.92.1667869273424;
Mon, 07 Nov 2022 17:01:13 -0800 (PST)
X-Received: by 2002:a05:6214:62f:b0:4bb:ea3c:a56 with SMTP id
a15-20020a056214062f00b004bbea3c0a56mr41794278qvx.52.1667869273101; Mon, 07
Nov 2022 17:01:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Mon, 7 Nov 2022 17:01:12 -0800 (PST)
In-Reply-To: <jssi5tFs9etU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:48f0:4e4a:3267:e84d;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:48f0:4e4a:3267:e84d
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: urbanjost@comcast.net (John)
Injection-Date: Tue, 08 Nov 2022 01:01:13 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3660
 by: John - Tue, 8 Nov 2022 01:01 UTC

On Monday, November 7, 2022 at 9:14:25 AM UTC-5, Steve Lionel wrote:
> On 11/6/2022 1:00 PM, Peter Klausler US wrote:
> > It is not a complex-literal-constant (R718) -- the real and imaginary parts would have to be both signed-int-literal-constant, signed-real-literal-constant, or named constants.
> Agree - I thought I posted a correction yesterday, but don't see it.
>
> NAG Fortran rejects "print *, (3+10*3,0)". Intel Fortran accepts it as
> it has an extension allowing a parenthesized I/O list - it will complain
> if you ask for standards checking.
> --
> Steve Lionel
> ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
> Retired Intel Fortran developer/support
> Email: firstname at firstnamelastname dot com
> Twitter: @DoctorFortran
> LinkedIn: https://www.linkedin.com/in/stevelionel
> Blog: https://stevelionel.com/drfortran

Another thing the vexes me about complex variables is which compilers have it right for passing x%re and x%im as arguments?
I should probably report this to one or the other, but I cannot find anything in the standard so far that clears up "TEST II" so far.
Does anyone else see it?

$ gfortran x-x.f90
$ ./a.out
(100.000000,0.141120002)
(200.000000,0.141120002)

$ ifort x-x.f90
$ ./a.out
(100.0000,0.1411200)
(100.0000,0.1411200)

$ nvfortran x-x.f90
$ ./a.out
(100.0000,0.1411200)
(100.0000,0.1411200)
$ cat x-x.f90

> program testit
> complex :: x
> ! TEST I
> ! x%re|mi can appear on the left-hand side of an assignment
> x%re=100.0
> x%im=sin(3.0)
>
> ! TEST II
> write(*,*)x
> ! it can be passed as a subroutine argument and be changed
> call trivial(x%re)
> write(*,*)x
> contains
> subroutine trivial(r)
> real :: r
> r=r*2
> end subroutine trivial
> end program testit

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<tkev7q$1hv3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3077&group=comp.lang.fortran#3077

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Newsgroups: comp.lang.fortran
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
Date: Wed, 9 Nov 2022 01:19:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 92
Message-ID: <tkev7q$1hv3$1@dont-email.me>
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net>
<fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com>
<5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net>
<862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
<44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net>
<1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Nov 2022 01:19:55 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="d4ac2b21e8cce2fbbb7e1f2b340b1b00";
logging-data="51171"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vJlkDp2IeNH3uXJw4+Eev"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:l2hveh/WS335OFWzGloW4TcOIsY=
 by: Steven G. Kargl - Wed, 9 Nov 2022 01:19 UTC

On Mon, 07 Nov 2022 17:01:12 -0800, John wrote:

> On Monday, November 7, 2022 at 9:14:25 AM UTC-5, Steve Lionel wrote:
>> On 11/6/2022 1:00 PM, Peter Klausler US wrote:
>> > It is not a complex-literal-constant (R718) -- the real and imaginary parts would have to be both signed-int-literal-constant, signed-real-literal-constant, or named constants.
>> Agree - I thought I posted a correction yesterday, but don't see it.
>>
>> NAG Fortran rejects "print *, (3+10*3,0)". Intel Fortran accepts it as
>> it has an extension allowing a parenthesized I/O list - it will complain
>> if you ask for standards checking.
>> --
>> Steve Lionel
>> ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
>> Retired Intel Fortran developer/support
>> Email: firstname at firstnamelastname dot com
>> Twitter: @DoctorFortran
>> LinkedIn: https://www.linkedin.com/in/stevelionel
>> Blog: https://stevelionel.com/drfortran
>
> Another thing the vexes me about complex variables is which compilers have it right for passing x%re and x%im as arguments?
> I should probably report this to one or the other, but I cannot find anything in the standard so far that clears up "TEST II" so far.
> Does anyone else see it?
>
>
>
>
> $ gfortran x-x.f90
> $ ./a.out
> (100.000000,0.141120002)
> (200.000000,0.141120002)
>
> $ ifort x-x.f90
> $ ./a.out
> (100.0000,0.1411200)
> (100.0000,0.1411200)
>
> $ nvfortran x-x.f90
> $ ./a.out
> (100.0000,0.1411200)
> (100.0000,0.1411200)
> $ cat x-x.f90
>
> > program testit
> > complex :: x
> > ! TEST I
> > ! x%re|mi can appear on the left-hand side of an assignment
> > x%re=100.0
> > x%im=sin(3.0)
> >
> > ! TEST II
> > write(*,*)x
> > ! it can be passed as a subroutine argument and be changed
> > call trivial(x%re)
> > write(*,*)x
> > contains
> > subroutine trivial(r)
> > real :: r
> > r=r*2

I believe that gfortran is correct.

9.1 Designator

R901 designator is object-name
or array-element
or array-section
or coindexed-named-object
or complex-part-designator
or structure-component
or substring

1 The appearance of a data object designator in a context that requires its value
is termed a reference.

9.2 Variable is designator

R902 variable

There is nothing in

19.6.5 Events that cause variables to become defined

1 Variables become defined by the following events.

the long list that disqualifies a complex-part-designator
from being manipulated through the argument association
with a dummy argument.

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3090&group=comp.lang.fortran#3090

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:688b:0:b0:3a5:4032:84 with SMTP id m11-20020ac8688b000000b003a540320084mr34362930qtq.594.1668003846292;
Wed, 09 Nov 2022 06:24:06 -0800 (PST)
X-Received: by 2002:a05:620a:2909:b0:6ee:6c83:9769 with SMTP id
m9-20020a05620a290900b006ee6c839769mr44157358qkp.732.1668003846066; Wed, 09
Nov 2022 06:24:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 9 Nov 2022 06:24:05 -0800 (PST)
In-Reply-To: <tkev7q$1hv3$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:eda0:8c27:41f1:1171;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:eda0:8c27:41f1:1171
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net> <1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: urbanjost@comcast.net (John)
Injection-Date: Wed, 09 Nov 2022 14:24:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5089
 by: John - Wed, 9 Nov 2022 14:24 UTC

On Tuesday, November 8, 2022 at 8:19:58 PM UTC-5, Steven G. Kargl wrote:
> On Mon, 07 Nov 2022 17:01:12 -0800, John wrote:
>
> > On Monday, November 7, 2022 at 9:14:25 AM UTC-5, Steve Lionel wrote:
> >> On 11/6/2022 1:00 PM, Peter Klausler US wrote:
> >> > It is not a complex-literal-constant (R718) -- the real and imaginary parts would have to be both signed-int-literal-constant, signed-real-literal-constant, or named constants.
> >> Agree - I thought I posted a correction yesterday, but don't see it.
> >>
> >> NAG Fortran rejects "print *, (3+10*3,0)". Intel Fortran accepts it as
> >> it has an extension allowing a parenthesized I/O list - it will complain
> >> if you ask for standards checking.
> >> --
> >> Steve Lionel
> >> ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
> >> Retired Intel Fortran developer/support
> >> Email: firstname at firstnamelastname dot com
> >> Twitter: @DoctorFortran
> >> LinkedIn: https://www.linkedin.com/in/stevelionel
> >> Blog: https://stevelionel.com/drfortran
> >
> > Another thing the vexes me about complex variables is which compilers have it right for passing x%re and x%im as arguments?
> > I should probably report this to one or the other, but I cannot find anything in the standard so far that clears up "TEST II" so far.
> > Does anyone else see it?
> >
> >
> >
> >
> > $ gfortran x-x.f90
> > $ ./a.out
> > (100.000000,0.141120002)
> > (200.000000,0.141120002)
> >
> > $ ifort x-x.f90
> > $ ./a.out
> > (100.0000,0.1411200)
> > (100.0000,0.1411200)
> >
> > $ nvfortran x-x.f90
> > $ ./a.out
> > (100.0000,0.1411200)
> > (100.0000,0.1411200)
> > $ cat x-x.f90
> >
> > > program testit
> > > complex :: x
> > > ! TEST I
> > > ! x%re|mi can appear on the left-hand side of an assignment
> > > x%re=100.0
> > > x%im=sin(3.0)
> > >
> > > ! TEST II
> > > write(*,*)x
> > > ! it can be passed as a subroutine argument and be changed
> > > call trivial(x%re)
> > > write(*,*)x
> > > contains
> > > subroutine trivial(r)
> > > real :: r
> > > r=r*2
> I believe that gfortran is correct.
>
>
> 9.1 Designator
>
> R901 designator is object-name
> or array-element
> or array-section
> or coindexed-named-object
> or complex-part-designator
> or structure-component
> or substring
>
> 1 The appearance of a data object designator in a context that requires its value
> is termed a reference.
>
> 9.2 Variable is designator
>
> R902 variable
>
> There is nothing in
>
> 19.6.5 Events that cause variables to become defined
>
> 1 Variables become defined by the following events.
>
> the long list that disqualifies a complex-part-designator
> from being manipulated through the argument association
> with a dummy argument.
Exactly what I was looking for. Two out of three compilers I tried did not agree with what I expected, and I did not see what, when you extract and present it as you did, suddenly looks (relatively) clear. I will report to Intel and Nvidia. Curious if anyone has results for NAG/Cray/IBM/...

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<jt1vu1Fn1u1U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3091&group=comp.lang.fortran#3091

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
Date: Wed, 9 Nov 2022 10:39:46 -0500
Lines: 20
Message-ID: <jt1vu1Fn1u1U1@mid.individual.net>
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net>
<fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com>
<5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net>
<862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
<44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net>
<1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me>
<d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net pLtp0DSffG56TNZtrdL64QqndEGNv7rJYAZON500Bimh8r76NK
Cancel-Lock: sha1:K6488g15DLbaeA9TRgfdi9M4P5U=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101
Thunderbird/107.0
Content-Language: en-US
In-Reply-To: <d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
 by: Steve Lionel - Wed, 9 Nov 2022 15:39 UTC

On 11/9/2022 9:24 AM, John wrote:
> Curious if anyone has results for NAG/Cray/IBM/...
D:\Projects>nagfor -o t.exe t.f90
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7114
[NAG Fortran Compiler normal termination]

D:\Projects>t.exe
(1.0000000E+02,0.1411200)
(2.0000000E+02,0.1411200)

--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3097&group=comp.lang.fortran#3097

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:4053:0:b0:3a5:89c9:3f3a with SMTP id j19-20020ac84053000000b003a589c93f3amr14029347qtl.277.1668025308182;
Wed, 09 Nov 2022 12:21:48 -0800 (PST)
X-Received: by 2002:a05:620a:808a:b0:6fa:6b3a:705d with SMTP id
ef10-20020a05620a808a00b006fa6b3a705dmr28222865qkb.196.1668025307890; Wed, 09
Nov 2022 12:21:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 9 Nov 2022 12:21:47 -0800 (PST)
In-Reply-To: <jt1vu1Fn1u1U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.133.221; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.133.221
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net> <1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me> <d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
<jt1vu1Fn1u1U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: harperjf2@gmail.com (jfh)
Injection-Date: Wed, 09 Nov 2022 20:21:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3005
 by: jfh - Wed, 9 Nov 2022 20:21 UTC

On Thursday, November 10, 2022 at 4:39:49 AM UTC+13, Steve Lionel wrote:
> On 11/9/2022 9:24 AM, John wrote:
> > Curious if anyone has results for NAG/Cray/IBM/...
> D:\Projects>nagfor -o t.exe t.f90
> NAG Fortran Compiler Release 7.1(Hanzomon) Build 7114
> [NAG Fortran Compiler normal termination]
>
> D:\Projects>t.exe
> (1.0000000E+02,0.1411200)
> (2.0000000E+02,0.1411200)

> --
> Steve Lionel
> ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
> Retired Intel Fortran developer/support
> Email: firstname at firstnamelastname dot com
> Twitter: @DoctorFortran
> LinkedIn: https://www.linkedin.com/in/stevelionel
> Blog: https://stevelionel.com/drfortran
> WG5: https://wg5-fortran.org

On renaming the program xreim.f90 and making the dummy argument r of subroutine trivial intent(inout) ifort gave this compile-time error message:

xreim.f90(11): error #6638: An actual argument is an expression or constant; this is not valid since the associated dummy argument has the explicit INTENT(OUT) or INTENT(INOUT) attribute. [REAL]
call trivial(x%re)
^ compilation aborted for xreim.f90 (code 1)

That made it clearer why ifort did what it did. Whether it was standard-conforming is a more subtle question.

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<55e0b0c0-2fe5-4f3e-9121-0b780d054225n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3138&group=comp.lang.fortran#3138

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:7f5:b0:6f9:fea2:833a with SMTP id k21-20020a05620a07f500b006f9fea2833amr3610350qkk.659.1668218572383;
Fri, 11 Nov 2022 18:02:52 -0800 (PST)
X-Received: by 2002:a05:622a:1ccb:b0:3a5:311f:8004 with SMTP id
bc11-20020a05622a1ccb00b003a5311f8004mr3888988qtb.627.1668218572177; Fri, 11
Nov 2022 18:02:52 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 11 Nov 2022 18:02:52 -0800 (PST)
In-Reply-To: <3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:7530:ab51:6474:436;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:7530:ab51:6474:436
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net> <1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me> <d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
<jt1vu1Fn1u1U1@mid.individual.net> <3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <55e0b0c0-2fe5-4f3e-9121-0b780d054225n@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: urbanjost@comcast.net (John)
Injection-Date: Sat, 12 Nov 2022 02:02:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2128
 by: John - Sat, 12 Nov 2022 02:02 UTC

FYI: Reported issues with complex designators on Intel Forum ...

https://community.intel.com/t5/Intel-Fortran-Compiler/Issues-with-complex-part-designators/m-p/1429557#M163510

Did anyone ask J3 for clarification on original issue?

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<jta9t1Fm6nU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3156&group=comp.lang.fortran#3156

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
Date: Sat, 12 Nov 2022 14:18:58 -0500
Lines: 20
Message-ID: <jta9t1Fm6nU2@mid.individual.net>
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net>
<fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com>
<5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net>
<862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net>
<44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net>
<1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me>
<d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
<jt1vu1Fn1u1U1@mid.individual.net>
<3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>
<55e0b0c0-2fe5-4f3e-9121-0b780d054225n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net TJNd5BSKLKKJEXZju5FkIgXlss3VrrOztwrFd90RQKygUsfYvU
Cancel-Lock: sha1:pGk9BSJ+2/9OG4APfmj/js2wY2o=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101
Thunderbird/107.0
Content-Language: en-US
In-Reply-To: <55e0b0c0-2fe5-4f3e-9121-0b780d054225n@googlegroups.com>
 by: Steve Lionel - Sat, 12 Nov 2022 19:18 UTC

On 11/11/2022 9:02 PM, John wrote:
> FYI: Reported issues with complex designators on Intel Forum ...
>
> https://community.intel.com/t5/Intel-Fortran-Compiler/Issues-with-complex-part-designators/m-p/1429557#M163510
>
> Did anyone ask J3 for clarification on original issue?
>
>
Unnecessary - the standard is quite clear that a complex-part-designator
is a variable. That ifort doesn't treat it that way is a bug.
--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: Can a named-constant in a complex-literal-constant have rank > 0?

<ce15cb42-e2c8-4b2b-8bb2-6306aae7b2fbn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3210&group=comp.lang.fortran#3210

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:13ef:b0:6fa:2cc3:b39e with SMTP id h15-20020a05620a13ef00b006fa2cc3b39emr50028qkl.579.1668650192513;
Wed, 16 Nov 2022 17:56:32 -0800 (PST)
X-Received: by 2002:a37:354:0:b0:6fb:9b2:b946 with SMTP id 81-20020a370354000000b006fb09b2b946mr68393qkd.487.1668650192256;
Wed, 16 Nov 2022 17:56:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 16 Nov 2022 17:56:32 -0800 (PST)
In-Reply-To: <jta9t1Fm6nU2@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:98c7:e9df:746d:4f1a;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:98c7:e9df:746d:4f1a
References: <fe1b59f8-54f4-441b-bf22-315e4edab2a3n@googlegroups.com>
<jsgh44F17h5U1@mid.individual.net> <fd998593-d11b-4347-a40c-c71a2ae806d4n@googlegroups.com>
<06e26022-6faf-452c-8c34-df6e8f9a1994n@googlegroups.com> <5bc2a9c6-8eb7-40cd-8180-3892540ffb2fn@googlegroups.com>
<jso8ptF894nU1@mid.individual.net> <862fe5f8-0a77-4cd5-8722-83198d6bf9f9n@googlegroups.com>
<jsoen0F94jvU1@mid.individual.net> <44e7af9c-f623-4cda-8a2d-d92cd21ff12cn@googlegroups.com>
<jssi5tFs9etU1@mid.individual.net> <1ff79ae6-1eea-4c99-a6b7-4288e06213aan@googlegroups.com>
<tkev7q$1hv3$1@dont-email.me> <d3c273f3-513a-423a-a961-4d07155e701an@googlegroups.com>
<jt1vu1Fn1u1U1@mid.individual.net> <3197edf9-3d7f-4b61-8feb-6f82f712c6fan@googlegroups.com>
<55e0b0c0-2fe5-4f3e-9121-0b780d054225n@googlegroups.com> <jta9t1Fm6nU2@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ce15cb42-e2c8-4b2b-8bb2-6306aae7b2fbn@googlegroups.com>
Subject: Re: Can a named-constant in a complex-literal-constant have rank > 0?
From: urbanjost@comcast.net (John)
Injection-Date: Thu, 17 Nov 2022 01:56:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3160
 by: John - Thu, 17 Nov 2022 01:56 UTC

On Saturday, November 12, 2022 at 2:19:01 PM UTC-5, Steve Lionel wrote:
> On 11/11/2022 9:02 PM, John wrote:
> > FYI: Reported issues with complex designators on Intel Forum ...
> >
> > https://community.intel.com/t5/Intel-Fortran-Compiler/Issues-with-complex-part-designators/m-p/1429557#M163510
> >
> > Did anyone ask J3 for clarification on original issue?
> >
> >
> Unnecessary - the standard is quite clear that a complex-part-designator
> is a variable. That ifort doesn't treat it that way is a bug.
> --
> Steve Lionel
> ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
> Retired Intel Fortran developer/support
> Email: firstname at firstnamelastname dot com
> Twitter: @DoctorFortran
> LinkedIn: https://www.linkedin.com/in/stevelionel
> Blog: https://stevelionel.com/drfortran

FYI: Intel and the Intel forum were very responsive and Intel has opened 2 bug reports on the complex designator issues

CMLRLLVM-41931 for passing z%re to a subroutine that updates the value of the arg, but actual arg is unchanged after return.

CMLRIL0-35035 for the -check uninit that erroneously flags the assignment as illegal use of uninit variable.
> WG5: https://wg5-fortran.org

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor