Commit b3a28103 by Ian Lance Taylor

Don't crash on invalid comparison of complex constants.

From-SVN: r170037
parent d3c83925
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment