------- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-28 01:04 ------- Confirmed. Here is a better testcase: int main() { bool b0 = 1; // { dg-warning "" } const bool b00 = 1; // { dg-warning "" } if (bool b1 = 1) // { dg-warning "" } return 0; else return 1;
if (const bool b2 = 1) // { dg-warning "" } return 0; else return 1; } -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC build triplet|all | GCC host triplet|all | GCC target triplet|all | Keywords| |diagnostic Known to fail| |4.1.3 4.3.2 4.2.2 4.6.0 Last reconfirmed|0000-00-00 00:00:00 |2010-06-28 01:04:12 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648