[cfe-dev] C++ and volatile lvalue-to-rvalue
Abramo Bagnara
abramo.bagnara at gmail.com
Thu Oct 13 13:51:07 PDT 2011
Il 13/10/2011 21:01, John McCall ha scritto:
> On Oct 13, 2011, at 5:54 AM, Sebastian Redl wrote:
>
>> It could be considered a defect of one of the two languages that they
>> differ in such a subtle detail.
I see this difference as a natural consequence of the different nature
of value of expression `a=b' in the two languages...
The differences are many and subtle in many different way and in many
areas (my preferred nasty one is that in gcc bitfield unsigned
arithmetic for bit widths larger than 32 bits use deliberately a
different modulo in C and C++)
>
> Indeed, and the C++ committee has actually made some attempts to change
> this in C++11, but we haven't implemented those changes yet, and we're
> likely to only implement them in C++11 mode (i.e., treat C++11 as
> explicitly changing the semantics, rather than treating it as a true fix).
Can you post a reference to that? I'm very interested to understand
where this leads.
More information about the cfe-dev
mailing list