[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 23:34:00 GMT 2006



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-09-09 23:33 -------
Grrr my patch causes a rejects valid to happen.
void
f()
{
  bool i = 0;
  ++i = 6;
}

Is valid code as preincrement is an lvalue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28989



More information about the Gcc-bugs mailing list