Don't crash on invalid comparison of complex constants.

From-SVN: r170037
This commit is contained in:
Ian Lance Taylor 2011-02-11 00:19:15 +00:00
parent d3c839259b
commit b3a2810309

View file

@ -5159,7 +5159,7 @@ Binary_expression::do_lower(Gogo*, Named_object*, int)
{
// May be a type error--let it be diagnosed later.
}
else if (is_comparison)
else if (op == OPERATOR_EQEQ || op == OPERATOR_NOTEQ)
{
bool b = Binary_expression::compare_complex(op,
(left_type != NULL