PR c++/47476
* semantics.c (potential_constant_expression_1): Handle
TRUTH_XOR_EXPR.
* g++.dg/cpp0x/pr47476.C: New test.
From-SVN: r169306
+2011-01-26 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/47476
+ * semantics.c (potential_constant_expression_1): Handle
+ TRUTH_XOR_EXPR.
+
2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
PR c++/43601
case BIT_IOR_EXPR:
case BIT_XOR_EXPR:
case BIT_AND_EXPR:
+ case TRUTH_XOR_EXPR:
case UNLT_EXPR:
case UNLE_EXPR:
case UNGT_EXPR:
+2011-01-26 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/47476
+ * g++.dg/cpp0x/pr47476.C: New test.
+
2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
* gcc.c-torture/compile/20110126-1.c: New test.
--- /dev/null
+// PR c++/47476
+// { dg-do compile }
+// { dg-options "-std=c++0x" }
+
+int
+foo (int a, int b)
+{
+ const bool c ((a != 0) == (b != 26));
+ return c;
+}