Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig Newsgroups: comp.lang.fortran Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Sun, 27 Oct 2024 08:05:47 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 27 Oct 2024 09:05:47 +0100 (CET) Injection-Info: dont-email.me; posting-host="9c888516a38f93e2aadeb3184c27495e"; logging-data="229245"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DD7ITggmfu/B+RHWhL0hEE8bbOoBI8H0=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:BBEaw2s6cN0VKNS1IBYgiC+YSfg= Bytes: 2854 Lawrence D'Oliveiro schrieb: > On Sat, 26 Oct 2024 21:38:38 -0000 (UTC), Thomas Koenig wrote: > >> Lawrence D'Oliveiro schrieb: >> >>> On Sat, 26 Oct 2024 11:51:42 -0000 (UTC), Thomas Koenig wrote: >>> >>>> The "parameter adjustment" above is explicitly listed as undefined >>>> behavior, in annex J2 of n2596.pdf (for example): >>>> >>>> "Addition or subtraction of a pointer into, or just beyond, an array >>>> object and an integer type produces a result that does not point into, >>>> or just beyond, the same array object (6.5.6)." >>> >>> Read it again: note the qualification “that does not point into, or >>> just beyond, the same array object”. So long as it *does* point “into, >>> or just beyond, the same array object”, it is fine. >> >> What you are writing is equivalent to > > You don’t understand what pointer arithmetic means, do you? I've killfiled you in comp.arch, and I think it is a good time now for comp.lang.fortran.