re PR c++/48909 ([C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics...
authorJason Merrill <jason@redhat.com>
Fri, 6 May 2011 21:57:49 +0000 (17:57 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 6 May 2011 21:57:49 +0000 (17:57 -0400)
commit9e33e3210a0bf2cc04f409423bc9210de5e31729
tree3146f151678ec1c497060f154a6f58336c8958ac
parentc80e3e0267b3b415090d49a73747486f3313138b
re PR c++/48909 ([C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213)

PR c++/48909
* semantics.c (cxx_eval_conditional_expression): Check
integer_zerop/onep instead.

From-SVN: r173511
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-condition2.C [new file with mode: 0644]