From 1358551fc61841e7a78b6f04919d96a54dc24bd1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 28 Dec 2011 03:46:20 +0000 Subject: compiler: Prohibit comparisons of funcs, maps, and slices to non-nil. From-SVN: r182703 --- gcc/go/gofrontend/expressions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/go/gofrontend/expressions.h') diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 6da507b..4e06b24 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -1147,9 +1147,9 @@ class Binary_expression : public Expression do_import(Import*); // Report an error if OP can not be applied to TYPE. Return whether - // it can. + // it can. OTYPE is the type of the other operand. static bool - check_operator_type(Operator op, Type* type, Location); + check_operator_type(Operator op, Type* type, Type* otype, Location); protected: int -- cgit v1.1