Sujet : Re: Computer architects leaving Intel...
De : tkoenig (at) *nospam* netcologne.de (Thomas Koenig)
Groupes : comp.archDate : 31. Aug 2024, 12:26:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vauum2$10cpt$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : slrn/1.0.3 (Linux)
So, sorry for the too-quick examples earlier...
What about
int foo (int a)
{
return a + 1;
}
or
int foo(int *a)
{
return *a;
}
Both can exhibit undefined behavior, and for both it
is impossible for the compiler to tell at compile-time.