Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.fortran Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Sat, 26 Oct 2024 20:23:45 -0000 (UTC) Organization: A noiseless patient Spider Lines: 12 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 26 Oct 2024 22:23:45 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5c6e5cf9254ac19034265e59688edf8f"; logging-data="4066378"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GVJA9IqzBC9+6AoLYla9P" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:60uDpnNK+MbFaTd9zJaUTP1YHVI= Bytes: 2332 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.