re PR c++/29295 (++ operator with bool typedef increments or operator -- with bool...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sat, 28 Oct 2006 23:01:59 +0000 (23:01 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 28 Oct 2006 23:01:59 +0000 (16:01 -0700)
commit857d325a640ab62412800b36a89f82f0e424db68
treee4029dbb2c86c3cba024f2ea381d85958738fc53
parent85f37826c69cda5ca54fea63962b46ccd9f15c1b
re PR c++/29295 (++ operator with bool typedef increments or operator -- with bool typedef)

2006-10-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/29295
        * typeck.c (build_unary_op): Use same_type_p when comparing to
        boolean type.

2006-10-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/29295
        * g++.dg/expr/bool1.C: New test.
        * g++.dg/expr/bool2.C: New test.

From-SVN: r118118
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/bool1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/expr/bool2.C [new file with mode: 0644]