Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Two different Results between C and C++
Date: Thu, 10 Sep 2020 06:20:17 -0700
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <86h7s56a5q.fsf@linuxsc.com>
References: <8c6495f9-6139-464e-ac8f-4eac27a92776@googlegroups.com> <60d0f73c-8588-4673-a48d-e5c4cc726196@googlegroups.com> <87blm1wam0.fsf@nosuchdomain.example.com> <86d05skg6z.fsf@linuxsc.com> <87tuz4gt4c.fsf@nosuchdomain.example.com> <861rjj8kmz.fsf@linuxsc.com> <5ca1c06a-3536-4b35-bcdf-85ea9b4b7abco@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="2bb8f34a10e1e80b0f9fa9d955137be2"; logging-data="9816"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SsFb7xRx/wCjzKPZWbe9KXgHqsAH+dKs="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:tLjpMnpZBkwp1oOCB7xDSSwD+ak= sha1:hfkBLonz0G9FNZqDZyLPmcUdmzU=
Xref: csiph.com comp.lang.c:154800
James Kuyper writes:
> On Thursday, September 3, 2020 at 2:00:54 AM UTC-4, Tim Rentsch wrote:
> ...
>
>> The bigger problem is C code that is legal C++ but has different
>> semantics in C++ than in C. There are more of these than most
>> C or C++ developers think there are. I don't know anyone,
>> including myself, who can say with confidence that they know
>> all the different ways that source code can have a different
>> meaning in C++ compared to C. ...
>
> Those ways are listed in Annex C.1 of the C++ standard. [...]
Some are. Some are not.