Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Why did the Roman Empire collapse? What is the Latin for office automation?


devel / comp.lang.fortran / Re: Deallocate problem

SubjectAuthor
* Deallocate problemRon Shepard
`* Deallocate problemgah4
 `* Deallocate problemRobin Vowels
  `* Deallocate problemjfh
   +- Deallocate problemgah4
   `* Deallocate problemRobin Vowels
    +* Deallocate problemRon Shepard
    |+- Deallocate problemGary Scott
    |`* Deallocate problemRobin Vowels
    | `* Deallocate problemjfh
    |  `* Deallocate problemgah4
    |   `* Deallocate problemThomas Koenig
    |    `- Deallocate problemRobin Vowels
    +* Deallocate problemjfh
    |`- Deallocate problemjfh
    `- Deallocate problemgah4

1
Re: Deallocate problem

<1EmUK.25619$0qy7.14525@fx40.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3625&group=comp.lang.fortran#3625

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0)
Gecko/20100101 Thunderbird/102.2.2
Subject: Re: Deallocate problem
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me>
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <tfsc4a$2ten9$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 25
Message-ID: <1EmUK.25619$0qy7.14525@fx40.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Wed, 14 Sep 2022 10:42:52 -0500
X-Received-Bytes: 1744
 by: Ron Shepard - Wed, 14 Sep 2022 15:42 UTC

On 9/14/22 5:58 AM, db wrote:
> On 13.09.2022 15.11, Robin Vowels wrote:
> [...]
>>>> .
>>>> You could try deallocating each one separately.
>>> That was the way to the solution. I found that C, X and Z were fine
>>> but it baulked at p. So I looked further and found that although I
>>> had allocated p and r as p(3,NX) and r(3,NZ), in a routine I assigned
>>> values to (p(0,i) and r(0,i), so I overwrote something. When I removed
>>> that, the problem went away. A hard one.
>> .
>> You hadn't used array bounds checking?
>
> I thought I did:
>
> gfortran -o expexpsor.out -g -fcheck=bounds \
>
> ...

It might be worth the effort to understand why the compiler did not
catch that array bounds mistake immediately.

$.02 -Ron Shepard

Re: Deallocate problem

<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3626&group=comp.lang.fortran#3626

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:15d4:b0:344:6a92:d8dc with SMTP id d20-20020a05622a15d400b003446a92d8dcmr32833520qty.114.1663172264343;
Wed, 14 Sep 2022 09:17:44 -0700 (PDT)
X-Received: by 2002:ad4:5bc7:0:b0:4ac:b800:d285 with SMTP id
t7-20020ad45bc7000000b004acb800d285mr13066472qvt.20.1663172264197; Wed, 14
Sep 2022 09:17:44 -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: Wed, 14 Sep 2022 09:17:44 -0700 (PDT)
In-Reply-To: <1EmUK.25619$0qy7.14525@fx40.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:149e:38ef:4709:6b03;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:149e:38ef:4709:6b03
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
Subject: Re: Deallocate problem
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 14 Sep 2022 16:17:44 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2010
 by: gah4 - Wed, 14 Sep 2022 16:17 UTC

On Wednesday, September 14, 2022 at 8:42:56 AM UTC-7, Ron Shepard wrote:
> On 9/14/22 5:58 AM, db wrote:

(snip)

> > gfortran -o expexpsor.out -g -fcheck=bounds \
> It might be worth the effort to understand why the compiler did not
> catch that array bounds mistake immediately.

I agree.

There are a number of ways to trick the bounds-check system.

Assumed size arrays can't check the upper bound, but even for them,
I think it still checks the lower bound.

If you do separate compilation, you need bounds check on all.

It seems that it should either find a compiler bug, or some
unusual trick done by the program, that could cause problems.

Re: Deallocate problem

<68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3628&group=comp.lang.fortran#3628

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:5acc:0:b0:35b:b658:4af8 with SMTP id d12-20020ac85acc000000b0035bb6584af8mr13868067qtd.625.1663180605378;
Wed, 14 Sep 2022 11:36:45 -0700 (PDT)
X-Received: by 2002:a05:620a:108d:b0:6ce:612b:7075 with SMTP id
g13-20020a05620a108d00b006ce612b7075mr7745598qkk.162.1663180605178; Wed, 14
Sep 2022 11:36: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: Wed, 14 Sep 2022 11:36:44 -0700 (PDT)
In-Reply-To: <c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad> <c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
Subject: Re: Deallocate problem
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Wed, 14 Sep 2022 18:36:45 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2199
 by: Robin Vowels - Wed, 14 Sep 2022 18:36 UTC

On Thursday, September 15, 2022 at 2:17:46 AM UTC+10, gah4 wrote:
> On Wednesday, September 14, 2022 at 8:42:56 AM UTC-7, Ron Shepard wrote:
> > On 9/14/22 5:58 AM, db wrote:
> (snip)
> > > gfortran -o expexpsor.out -g -fcheck=bounds \
> > It might be worth the effort to understand why the compiler did not
> > catch that array bounds mistake immediately.
> I agree.
>
> There are a number of ways to trick the bounds-check system.
>
> Assumed size arrays can't check the upper bound,
..
Silverfrost F95 checks bounds for these arrays.
..
> but even for them,
> I think it still checks the lower bound.
>
> If you do separate compilation, you need bounds check on all.
>
> It seems that it should either find a compiler bug, or some
> unusual trick done by the program, that could cause problems.

Re: Deallocate problem

<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3648&group=comp.lang.fortran#3648

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:189d:b0:35b:c3f7:495e with SMTP id v29-20020a05622a189d00b0035bc3f7495emr10256453qtc.416.1663473946876;
Sat, 17 Sep 2022 21:05:46 -0700 (PDT)
X-Received: by 2002:ad4:5b8b:0:b0:4ad:2b21:3390 with SMTP id
11-20020ad45b8b000000b004ad2b213390mr2917224qvp.20.1663473946711; Sat, 17 Sep
2022 21:05:46 -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: Sat, 17 Sep 2022 21:05:46 -0700 (PDT)
In-Reply-To: <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.83.30; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.83.30
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
Subject: Re: Deallocate problem
From: harperjf2@gmail.com (jfh)
Injection-Date: Sun, 18 Sep 2022 04:05:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2596
 by: jfh - Sun, 18 Sep 2022 04:05 UTC

On Thursday, September 15, 2022 at 6:36:47 AM UTC+12, Robin Vowels wrote:
> On Thursday, September 15, 2022 at 2:17:46 AM UTC+10, gah4 wrote: h
> > On Wednesday, September 14, 2022 at 8:42:56 AM UTC-7, Ron Shepard wrote:
> > > On 9/14/22 5:58 AM, db wrote:
> > (snip)
> > > > gfortran -o expexpsor.out -g -fcheck=bounds \
> > > It might be worth the effort to understand why the compiler did not
> > > catch that array bounds mistake immediately.
> > I agree.
> >
> > There are a number of ways to trick the bounds-check system.
> >
> > Assumed size arrays can't check the upper bound,
> .
> Silverfrost F95 checks bounds for these arrays.

Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) . Gfortran, ifort and g95 all accepted ithat. Does Silverfrost still have that bug/feature? Of course I changed my program to use selected_int_kind(1), but
I don't think selected-int-kind(0) should have been disallowed.

Re: Deallocate problem

<df2baeda-18a3-4418-bbbe-5891be127583n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3649&group=comp.lang.fortran#3649

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:2892:b0:6c4:79ac:d804 with SMTP id j18-20020a05620a289200b006c479acd804mr9330295qkp.697.1663475483506;
Sat, 17 Sep 2022 21:31:23 -0700 (PDT)
X-Received: by 2002:a05:620a:1721:b0:6ce:78a7:daca with SMTP id
az33-20020a05620a172100b006ce78a7dacamr9339341qkb.487.1663475483374; Sat, 17
Sep 2022 21:31:23 -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: Sat, 17 Sep 2022 21:31:23 -0700 (PDT)
In-Reply-To: <324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1881:a979:1418:8806;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1881:a979:1418:8806
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <df2baeda-18a3-4418-bbbe-5891be127583n@googlegroups.com>
Subject: Re: Deallocate problem
From: gah4@u.washington.edu (gah4)
Injection-Date: Sun, 18 Sep 2022 04:31:23 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2152
 by: gah4 - Sun, 18 Sep 2022 04:31 UTC

On Saturday, September 17, 2022 at 9:05:48 PM UTC-7, jfh wrote:

(snip)

> Someone trying one of my programs with Silverfrost told me years ago
> that it wouldn't compile because i had tried to declare an integer variable
> with the smallest number of bits with selected-int-kind(0). Gfortran,
> ifort and g95 all accepted ithat. Does Silverfrost still have that bug/feature?
> Of course I changed my program to use selected_int_kind(1), but
> I don't think selected-int-kind(0) should have been disallowed.

I suppose I believe that negative ones shouldn't be allowed, but zero
seems like it should work.

Re: Deallocate problem

<fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3651&group=comp.lang.fortran#3651

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:1441:b0:35c:da34:d5dc with SMTP id v1-20020a05622a144100b0035cda34d5dcmr6175409qtx.338.1663493289580;
Sun, 18 Sep 2022 02:28:09 -0700 (PDT)
X-Received: by 2002:a05:620a:108d:b0:6ce:612b:7075 with SMTP id
g13-20020a05620a108d00b006ce612b7075mr9236195qkk.162.1663493289425; Sun, 18
Sep 2022 02:28:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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, 18 Sep 2022 02:28:09 -0700 (PDT)
In-Reply-To: <324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
Subject: Re: Deallocate problem
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Sun, 18 Sep 2022 09:28:09 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1994
 by: Robin Vowels - Sun, 18 Sep 2022 09:28 UTC

On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:

> Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
You mean, selected_int_kind(0).
..
You wanted an integer variable capable of storing values between -1 and +1 ?
In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
You have to be joking.

Re: Deallocate problem

<QCHVK.444040$Ny99.120267@fx16.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3652&group=comp.lang.fortran#3652

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0)
Gecko/20100101 Thunderbird/102.2.2
Subject: Re: Deallocate problem
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
<68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
<fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 19
Message-ID: <QCHVK.444040$Ny99.120267@fx16.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 18 Sep 2022 11:24:16 -0500
X-Received-Bytes: 2300
 by: Ron Shepard - Sun, 18 Sep 2022 16:24 UTC

On 9/18/22 4:28 AM, Robin Vowels wrote:
> On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
>
>> Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
> You mean, selected_int_kind(0).
> .
> You wanted an integer variable capable of storing values between -1 and +1 ?
> In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> You have to be joking.

If there were ever a 1-bit integer kind introduced into the language,
then how would it be specified? selected_int_kind(1) would require at
least 5 bits, rounded up to 8-bits on most modern computers. So unless
the selected_int_kind() function is changed somehow (e.g. to specify
directly the minimum number of bits), asking for 0 decimal digits might
be the only way -- you ask for 0-bits and it would get rounded up to 1-bit.

$.02 -Ron Shepard

Re: Deallocate problem

<tg7usl$n661$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3653&group=comp.lang.fortran#3653

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: garylscott@sbcglobal.net (Gary Scott)
Newsgroups: comp.lang.fortran
Subject: Re: Deallocate problem
Date: Sun, 18 Sep 2022 15:25:57 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <tg7usl$n661$1@dont-email.me>
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
<68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
<fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Sep 2022 20:25:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="edef8cc7a2fda02ae4c18ed337830d5b";
logging-data="760001"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wBWnJpXPZXyCcylD7tVdO5gXD4semcBM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:OMMhhvmOr7CLWe19CcgE2x6ZG4I=
Content-Language: en-US
In-Reply-To: <QCHVK.444040$Ny99.120267@fx16.iad>
 by: Gary Scott - Sun, 18 Sep 2022 20:25 UTC

On 9/18/2022 11:24 AM, Ron Shepard wrote:
> On 9/18/22 4:28 AM, Robin Vowels wrote:
>> On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
>>
>>> Someone trying one of my programs with Silverfrost told me years ago
>>> that it wouldn't compile because i had tried to declare an integer
>>> variable with the smallest number of bits with selected-int-kind(0) .
>> You mean, selected_int_kind(0).
>> .
>> You wanted an integer variable capable of storing values between -1
>> and +1 ?
>> In other words, you wanted an integer variable capable of storing the
>> value 0 [i.e., zero].
>> You have to be joking.
>
> If there were ever a 1-bit integer kind introduced into the language,
> then how would it be specified? selected_int_kind(1) would require at
> least 5 bits, rounded up to 8-bits on most modern computers. So unless
> the selected_int_kind() function is changed somehow (e.g. to specify
> directly the minimum number of bits), asking for 0 decimal digits might
> be the only way -- you ask for 0-bits and it would get rounded up to 1-bit.
>
> $.02 -Ron Shepard
>
Careful, bit strings will raise its ugly head again...

Re: Deallocate problem

<d9a68077-9ea9-4041-9cf0-ba62716e561fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3654&group=comp.lang.fortran#3654

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:5d91:0:b0:35c:dfee:b28b with SMTP id d17-20020ac85d91000000b0035cdfeeb28bmr5877284qtx.459.1663543710155;
Sun, 18 Sep 2022 16:28:30 -0700 (PDT)
X-Received: by 2002:a05:620a:29c5:b0:6ce:b03d:2a06 with SMTP id
s5-20020a05620a29c500b006ceb03d2a06mr11381206qkp.552.1663543709982; Sun, 18
Sep 2022 16:28:29 -0700 (PDT)
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: Sun, 18 Sep 2022 16:28:29 -0700 (PDT)
In-Reply-To: <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2404:2000:2000:8:9b4c:c054:f0ea:7123;
posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 2404:2000:2000:8:9b4c:c054:f0ea:7123
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d9a68077-9ea9-4041-9cf0-ba62716e561fn@googlegroups.com>
Subject: Re: Deallocate problem
From: harperjf2@gmail.com (jfh)
Injection-Date: Sun, 18 Sep 2022 23:28:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2801
 by: jfh - Sun, 18 Sep 2022 23:28 UTC

On Sunday, September 18, 2022 at 9:28:11 PM UTC+12, Robin Vowels wrote:
> On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
>
> > Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
> You mean, selected_int_kind(0).
> .
> You wanted an integer variable capable of storing values between -1 and +1 ?
> In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> You have to be joking.

I was not joking because selected_int_kind(1) requires all 19 integers n in the range -10 < n < +10 to be available. If there was a compiler allowing 4-bit integers, hence 16 different possible values, then selected_int_kind(0) would be a way to get them. I note that the f2018 standard does not say that r has to be non-negative. And indeed the program below prints 127 with g95 and gfortran, showing that their lowest integer kind has 8 bits. (I don't have access to a computer with ifort this morning to test what it would do.)

Re: Deallocate problem

<4e1c5862-fd93-4c0f-a3fb-d9423403a0aen@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3655&group=comp.lang.fortran#3655

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:5705:0:b0:35c:d722:175d with SMTP id 5-20020ac85705000000b0035cd722175dmr9773876qtw.192.1663544940665;
Sun, 18 Sep 2022 16:49:00 -0700 (PDT)
X-Received: by 2002:ac8:7089:0:b0:35b:b5fa:5e35 with SMTP id
y9-20020ac87089000000b0035bb5fa5e35mr12780576qto.449.1663544940485; Sun, 18
Sep 2022 16:49:00 -0700 (PDT)
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: Sun, 18 Sep 2022 16:49:00 -0700 (PDT)
In-Reply-To: <d9a68077-9ea9-4041-9cf0-ba62716e561fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2404:2000:2000:8:9b4c:c054:f0ea:7123;
posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 2404:2000:2000:8:9b4c:c054:f0ea:7123
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<d9a68077-9ea9-4041-9cf0-ba62716e561fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4e1c5862-fd93-4c0f-a3fb-d9423403a0aen@googlegroups.com>
Subject: Re: Deallocate problem
From: harperjf2@gmail.com (jfh)
Injection-Date: Sun, 18 Sep 2022 23:49:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3105
 by: jfh - Sun, 18 Sep 2022 23:49 UTC

On Monday, September 19, 2022 at 11:28:31 AM UTC+12, jfh wrote:
> On Sunday, September 18, 2022 at 9:28:11 PM UTC+12, Robin Vowels wrote:
> > On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
> >
> > > Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
> > You mean, selected_int_kind(0).
> > .
> > You wanted an integer variable capable of storing values between -1 and +1 ?
> > In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> > You have to be joking.
> I was not joking because selected_int_kind(1) requires all 19 integers n in the range -10 < n < +10 to be available. If there was a compiler allowing 4-bit integers, hence 16 different possible values, then selected_int_kind(0) would be a way to get them. I note that the f2018 standard does not say that r has to be non-negative. And indeed the program below prints 127 with g95 and gfortran, showing that their lowest integer kind has 8 bits. (I don't have access to a computer with ifort this morning to test what it would do.)

Sorry, I forgot to provide the 3-line program:

integer, parameter:: ifew = selected_int_kind(-1)
print *, huge(0_ifew)
end program

Re: Deallocate problem

<dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3656&group=comp.lang.fortran#3656

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4729:b0:6ce:e55:b6ab with SMTP id bs41-20020a05620a472900b006ce0e55b6abmr11254608qkb.36.1663553398913;
Sun, 18 Sep 2022 19:09:58 -0700 (PDT)
X-Received: by 2002:ae9:df01:0:b0:6bb:4e95:6a59 with SMTP id
t1-20020ae9df01000000b006bb4e956a59mr11780022qkf.339.1663553398750; Sun, 18
Sep 2022 19:09:58 -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, 18 Sep 2022 19:09:58 -0700 (PDT)
In-Reply-To: <QCHVK.444040$Ny99.120267@fx16.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
Subject: Re: Deallocate problem
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Mon, 19 Sep 2022 02:09:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2855
 by: Robin Vowels - Mon, 19 Sep 2022 02:09 UTC

On Monday, September 19, 2022 at 2:24:21 AM UTC+10, Ron Shepard wrote:
> On 9/18/22 4:28 AM, Robin Vowels wrote:
> > On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
> >
> >> Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
> > You mean, selected_int_kind(0).
> > .
> > You wanted an integer variable capable of storing values between -1 and +1 ?
> > In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> > You have to be joking.
..
> If there were ever a 1-bit integer kind introduced into the language,
> then how would it be specified?
..
Well, selected_int_kind(0) won't do it, because the only value that
could be stored is '0'. And maybe -1 if 2 bits are allocated.
..
Might need a BIT type for that.
..
> selected_int_kind(1) would require at
> least 5 bits, rounded up to 8-bits on most modern computers. So unless
> the selected_int_kind() function is changed somehow (e.g. to specify
> directly the minimum number of bits), asking for 0 decimal digits might
> be the only way -- you ask for 0-bits and it would get rounded up to 1-bit.

Re: Deallocate problem

<0dc8f118-801f-4f21-861e-d312499634ddn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3657&group=comp.lang.fortran#3657

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a0c:a90a:0:b0:4ad:715:897 with SMTP id y10-20020a0ca90a000000b004ad07150897mr13319316qva.114.1663565366527;
Sun, 18 Sep 2022 22:29:26 -0700 (PDT)
X-Received: by 2002:a05:622a:15c4:b0:35b:b493:f8fb with SMTP id
d4-20020a05622a15c400b0035bb493f8fbmr13811010qty.300.1663565366395; Sun, 18
Sep 2022 22:29:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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, 18 Sep 2022 22:29:26 -0700 (PDT)
In-Reply-To: <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:871:6a3c:c79b:784d;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:871:6a3c:c79b:784d
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0dc8f118-801f-4f21-861e-d312499634ddn@googlegroups.com>
Subject: Re: Deallocate problem
From: gah4@u.washington.edu (gah4)
Injection-Date: Mon, 19 Sep 2022 05:29:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2112
 by: gah4 - Mon, 19 Sep 2022 05:29 UTC

On Sunday, September 18, 2022 at 2:28:11 AM UTC-7, Robin Vowels wrote:

(snip)

> You mean, selected_int_kind(0).
> You wanted an integer variable capable of storing values between -1 and +1 ?
> In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> You have to be joking.

No. It is supposed to be a kind that can hold at least that many digits.

But okay, a selected_int_kind(1) should hold at least between -9 and +9.

Selected_int_kind(0) could be less, or maybe not.

Re: Deallocate problem

<ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3658&group=comp.lang.fortran#3658

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:424c:b0:6be:78d5:ec73 with SMTP id w12-20020a05620a424c00b006be78d5ec73mr11747914qko.579.1663566214432;
Sun, 18 Sep 2022 22:43:34 -0700 (PDT)
X-Received: by 2002:ac8:578c:0:b0:35c:d9fe:98f7 with SMTP id
v12-20020ac8578c000000b0035cd9fe98f7mr9102821qta.360.1663566214221; Sun, 18
Sep 2022 22:43:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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, 18 Sep 2022 22:43:34 -0700 (PDT)
In-Reply-To: <dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.86.170; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.86.170
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad> <dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com>
Subject: Re: Deallocate problem
From: harperjf2@gmail.com (jfh)
Injection-Date: Mon, 19 Sep 2022 05:43:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4169
 by: jfh - Mon, 19 Sep 2022 05:43 UTC

On Monday, September 19, 2022 at 2:10:00 PM UTC+12, Robin Vowels wrote:
> On Monday, September 19, 2022 at 2:24:21 AM UTC+10, Ron Shepard wrote:
> > On 9/18/22 4:28 AM, Robin Vowels wrote: am
> > > On Sunday, September 18, 2022 at 2:05:48 PM UTC+10, jfh wrote:
> > >
> > >> Someone trying one of my programs with Silverfrost told me years ago that it wouldn't compile because i had tried to declare an integer variable with the smallest number of bits with selected-int-kind(0) .
> > > You mean, selected_int_kind(0).
> > > .
> > > You wanted an integer variable capable of storing values between -1 and +1 ?
> > > In other words, you wanted an integer variable capable of storing the value 0 [i.e., zero].
> > > You have to be joking.
> .
> > If there were ever a 1-bit integer kind introduced into the language,
> > then how would it be specified?
> .
> Well, selected_int_kind(0) won't do it, because the only value that
> could be stored is '0'. And maybe -1 if 2 bits are allocated.
> .
> Might need a BIT type for that.
> .
> > selected_int_kind(1) would require at
> > least 5 bits, rounded up to 8-bits on most modern compute

s. So unless
> > the selected_int_kind() function is changed somehow (e.g. to specify
> > directly the minimum number of bits), asking for 0 decimal digits might
> > be the only way -- you ask for 0-bits and it would get rounded up to 1-bit.

Robin Vowels seems to assume that selected_int_kind(0) is asking for an integer kind that can only provide integers n such that -1 < n < 1. It is not.. It is asking for the integer kind with the least decimal exponent range that includes 0. I have now found that ifort agrees with gfortran and g95 by giving 8-bit integers with huge = 127. If Robin were right then selected_int_kind(1) would give an integer type that allows -10 < n < 10 but not one that allows -100 < n < 100. I was not surprised that all three of those compilers print 127 four times with this program, and they are standard-conforming in that respect because none of those compilers has a 4-bit integer type. My revised 4-line program:

integer, parameter:: ineg = selected_int_kind(-1), i0 = selected_int_kind(0),&
i1 = selected_int_kind(1), i2 = selected_int_kind(2)
print *, huge(0_ineg),huge(0_i0),huge(0_i1),huge(0_i2)
end program

Re: Deallocate problem

<19581186-83ad-4dbf-8ee0-e22d62cd5a23n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3662&group=comp.lang.fortran#3662

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5aaf:0:b0:4a8:a817:e00d with SMTP id u15-20020ad45aaf000000b004a8a817e00dmr15650647qvg.18.1663605260835;
Mon, 19 Sep 2022 09:34:20 -0700 (PDT)
X-Received: by 2002:ac8:57d2:0:b0:35c:df7b:4454 with SMTP id
w18-20020ac857d2000000b0035cdf7b4454mr8610260qta.196.1663605260705; Mon, 19
Sep 2022 09:34:20 -0700 (PDT)
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, 19 Sep 2022 09:34:20 -0700 (PDT)
In-Reply-To: <ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:696f:b60a:dc48:b6eb;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:696f:b60a:dc48:b6eb
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad> <dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
<ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19581186-83ad-4dbf-8ee0-e22d62cd5a23n@googlegroups.com>
Subject: Re: Deallocate problem
From: gah4@u.washington.edu (gah4)
Injection-Date: Mon, 19 Sep 2022 16:34:20 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2634
 by: gah4 - Mon, 19 Sep 2022 16:34 UTC

On Sunday, September 18, 2022 at 10:43:36 PM UTC-7, jfh wrote:

(snip)

> I was not surprised that all three of those compilers print 127 four
> times with this program, and they are standard-conforming in that
> respect because none of those compilers has a 4-bit integer type.
> My revised 4-line program:
> integer, parameter:: ineg = selected_int_kind(-1), i0 = selected_int_kind(0),&
> i1 = selected_int_kind(1), i2 = selected_int_kind(2)
> print *, huge(0_ineg),huge(0_i0),huge(0_i1),huge(0_i2)
> end program

And especially that allows, in case anyone implemented it, a 4 bit type
that would not allow for selected_int_kind(1).

It would be nice to have a selector that allowed selecting the base
of the computation. (Not necessarily the base of the selected type.)

There could be machines with types that could not be distinguished
by whole decimal digits.

Re: Deallocate problem

<tgbj9n$aqf1$2@newsreader4.netcologne.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3665&group=comp.lang.fortran#3665

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-1257-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: Deallocate problem
Date: Tue, 20 Sep 2022 05:32:39 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tgbj9n$aqf1$2@newsreader4.netcologne.de>
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com>
<68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com>
<fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad>
<dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
<ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com>
<19581186-83ad-4dbf-8ee0-e22d62cd5a23n@googlegroups.com>
Injection-Date: Tue, 20 Sep 2022 05:32:39 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-1257-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:1257:0:7285:c2ff:fe6c:992d";
logging-data="354785"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Tue, 20 Sep 2022 05:32 UTC

gah4 <gah4@u.washington.edu> schrieb:
> On Sunday, September 18, 2022 at 10:43:36 PM UTC-7, jfh wrote:
>
> (snip)
>
>> I was not surprised that all three of those compilers print 127 four
>> times with this program, and they are standard-conforming in that
>> respect because none of those compilers has a 4-bit integer type.
>> My revised 4-line program:
>
>> integer, parameter:: ineg = selected_int_kind(-1), i0 = selected_int_kind(0),&
>> i1 = selected_int_kind(1), i2 = selected_int_kind(2)
>> print *, huge(0_ineg),huge(0_i0),huge(0_i1),huge(0_i2)
>> end program
>
> And especially that allows, in case anyone implemented it, a 4 bit type
> that would not allow for selected_int_kind(1).
>
> It would be nice to have a selector that allowed selecting the base
> of the computation. (Not necessarily the base of the selected type.)

For real types, you can select the radix with the corresponding
argument to SELECTED_REAL_KIND, if the hardware allows for it.
I suppose this is for decimal floats.

> There could be machines with types that could not be distinguished
> by whole decimal digits.

Real or complex arguments to SELECTED_INT_KIND, anybody? A base
of 2i sounds really promising (and Knuth proposed it, so it
must be good :-)

Re: Deallocate problem

<54c15763-22b5-4981-989a-6c4ced9656a6n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3666&group=comp.lang.fortran#3666

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:255:b0:35c:f299:5aaf with SMTP id c21-20020a05622a025500b0035cf2995aafmr4229387qtx.578.1663656206912;
Mon, 19 Sep 2022 23:43:26 -0700 (PDT)
X-Received: by 2002:ac8:578c:0:b0:35c:d9fe:98f7 with SMTP id
v12-20020ac8578c000000b0035cd9fe98f7mr13284402qta.360.1663656206693; Mon, 19
Sep 2022 23:43:26 -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: Mon, 19 Sep 2022 23:43:26 -0700 (PDT)
In-Reply-To: <tgbj9n$aqf1$2@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <tfkp70$1ucf3$1@dont-email.me> <a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me> <54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <1EmUK.25619$0qy7.14525@fx40.iad>
<c0bf1204-f374-429c-8f0a-699f05eb8bfdn@googlegroups.com> <68aee1d5-33f4-417f-bece-5fbc2dc488c7n@googlegroups.com>
<324e6283-0f52-43bd-8fe9-09c95fed3412n@googlegroups.com> <fe18dcad-4382-435f-8cc5-015352b9a9b4n@googlegroups.com>
<QCHVK.444040$Ny99.120267@fx16.iad> <dcab170e-97c8-4b9f-9a4e-4ef70750937en@googlegroups.com>
<ced0fa6e-b483-466f-a62a-4d737f772397n@googlegroups.com> <19581186-83ad-4dbf-8ee0-e22d62cd5a23n@googlegroups.com>
<tgbj9n$aqf1$2@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <54c15763-22b5-4981-989a-6c4ced9656a6n@googlegroups.com>
Subject: Re: Deallocate problem
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Tue, 20 Sep 2022 06:43:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3187
 by: Robin Vowels - Tue, 20 Sep 2022 06:43 UTC

On Tuesday, September 20, 2022 at 3:32:42 PM UTC+10, Thomas Koenig wrote:
> gah4 <ga...@u.washington.edu> schrieb:
> > On Sunday, September 18, 2022 at 10:43:36 PM UTC-7, jfh wrote:
> >
> > (snip)
> >
> >> I was not surprised that all three of those compilers print 127 four
> >> times with this program, and they are standard-conforming in that
> >> respect because none of those compilers has a 4-bit integer type.
> >> My revised 4-line program:
> >
> >> integer, parameter:: ineg = selected_int_kind(-1), i0 = selected_int_kind(0),&
> >> i1 = selected_int_kind(1), i2 = selected_int_kind(2)
> >> print *, huge(0_ineg),huge(0_i0),huge(0_i1),huge(0_i2)
> >> end program
> >
> > And especially that allows, in case anyone implemented it, a 4 bit type
> > that would not allow for selected_int_kind(1).
> >
> > It would be nice to have a selector that allowed selecting the base
> > of the computation. (Not necessarily the base of the selected type.)
> For real types, you can select the radix with the corresponding
> argument to SELECTED_REAL_KIND, if the hardware allows for it.
> I suppose this is for decimal floats.
> > There could be machines with types that could not be distinguished
> > by whole decimal digits.
> Real or complex arguments to SELECTED_INT_KIND, anybody?
..
PL/I has had COMPLEX integer (as well as COMPLEX FLOAT)
SINCE 1966.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor