Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Can someone please verify the execution trace of this? Date: Tue, 21 May 2024 14:39:23 -0700 Organization: A noiseless patient Spider Lines: 47 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 21 May 2024 23:39:24 +0200 (CEST) Injection-Info: dont-email.me; posting-host="6ad02092fbd70bc476a2c661bc081089"; logging-data="831682"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sxTwl32H1GfoJAG8uO3m++mAQlywQhb0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:BLqDa7lHbqDOKmQopnZ22/YHF5s= Content-Language: en-US In-Reply-To: Bytes: 2712 On 5/21/2024 12:21 PM, olcott wrote: > On 5/21/2024 2:03 PM, Chris M. Thomasson wrote: >> On 5/21/2024 6:37 AM, olcott wrote: >>> On 5/21/2024 6:48 AM, Sam wrote: >>>> olcott writes: >>>> >>>>> People on comp.theory have consistently lied about this >>>>> for at least the last two years: >>>>> >>>>> typedef int (*ptr)(); >>>>> int H(ptr P, ptr I); >>>>> >>>>> int D(ptr x) >>>>> { >>>>>   int Halt_Status = H(x, x); >>>>>   if (Halt_Status) >>>>>     HERE: goto HERE; >>>>>   return Halt_Status; >>>>> } >>>>> >>>>> int main() >>>>> { >>>>>   H(D,D); >>>>>   return 0; >>>>> } >>>> >>>> Your C compiler also lied to you, if it ever claimed of succeeding >>>> in compiling and producing an executable out of this masterpiece. >>>> >>> >>> Keith Thompson has confirmed that my code both compiles >>> and conforms to the c17 standard. >> >> Where did he say exactly that? >> >> [...] >> > > He only commented on the one-line-of code that does vary between > c17 and c23. The rest of the code has been standard for a long time. > I have been programming in C back when K & R was the standard. Show me a working C program. Where we all can compile and run the damn thing... https://youtu.be/uRo426va26I