[Bug c++/28989] [4.0/4.1/4.2 Regression] post-increment of bool variable accepted as lvalue
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 9 19:11:00 GMT 2006
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-09 19:10 -------
I think the problem is that i++ is being replaced with "i = 1" and (i = 1) = 2;
turns out to be legal C++.
If we add to boolean_increment to build a NON_LVALUE_EXPR, we will get an error
at least I hope.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28989
More information about the Gcc-bugs
mailing list