Sujet : Re: Computer architects leaving Intel...
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.archDate : 02. Sep 2024, 16:09:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240902180903.000035ee@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Mon, 02 Sep 2024 06:59:32 -0700
Tim Rentsch <
tr.17687@z991.linuxsc.com> wrote:
mitchalsup@aol.com (MitchAlsup1) writes:
On Mon, 2 Sep 2024 5:55:34 +0000, Thomas Koenig wrote:
George Neuner <gneuner2@comcast.net> schrieb:
I'm not going to argue about whether UB in code is wrong. The
question I have concerns what to do with something that
explicitly is mentioned as UB in some standard N, but was not
addressed in previous standards.
>
Was it always UB? Or should it be considered ID until it became
UB?
>
Can you give an exapmple?
>
Memcopy() with overlapping pointers.
Calling memcpy() between objects that overlap has always been
explicitly and specifically undefined behavior, going back to
the original ANSI C standard.
3 years ago Terje Mathisen wrote that many years ago he read that
behaviour of memcpy() with overlappped src/dst was defined.
https://groups.google.com/g/comp.arch/c/rSk8c7Urd_Y/m/ZWEG5V1KAQAJMitch Alsup answered "That was true in 1983".
So, two people of different age living in different parts of the world
are telling the same story. May be, there exist old popular book that
said that it was defined?