[patch] fix pre-/post- in-/decrement

Andreas Schwab schwab@redhat.com
Wed Oct 13 08:45:00 GMT 2010


Tom Tromey <tromey@redhat.com> writes:

> Also, I think the C++ rule is more complicated.  I did not look through
> the standard to find it, but g++ at least gives an error for a simple
> scalar "x++ = 5".

Postfix ++ does not return an lvalue.  Try prefix ++.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."



More information about the Gdb-patches mailing list