C++ PATCH for c++/50508 (ICE on constexpr &&)
Jason Merrill
jason@redhat.com
Tue Sep 27 02:04:00 GMT 2011
cxx_eval_logical_expression was assuming that a folded first operand of
&& would be either boolean_true_node or boolean_false_node, but in fact
it can be a constant with a typedef of bool, which doesn't compare equal
with ==. So we should use tree_int_cst_equal to compare them instead.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 50508.patch
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110927/b91bac88/attachment.bin>
More information about the Gcc-patches
mailing list