This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29295] ++ operator with bool typedef increments or operator -- with bool typedef



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-28 23:02 -------
Subject: Bug 29295

Author: pinskia
Date: Sat Oct 28 23:01:59 2006
New Revision: 118118

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118118
Log:
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.




Added:
    trunk/gcc/testsuite/g++.dg/expr/bool1.C
    trunk/gcc/testsuite/g++.dg/expr/bool2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]