diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-28 03:46:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-28 03:46:20 +0000 |
commit | 1358551fc61841e7a78b6f04919d96a54dc24bd1 (patch) | |
tree | 0620cac8fee9b74e18be59d7bcc70a0982606b41 /gcc/go/gofrontend/expressions.h | |
parent | 9437ab32a5b5d62b625680eaca90b189f8728ec5 (diff) | |
download | gcc-1358551fc61841e7a78b6f04919d96a54dc24bd1.zip gcc-1358551fc61841e7a78b6f04919d96a54dc24bd1.tar.gz gcc-1358551fc61841e7a78b6f04919d96a54dc24bd1.tar.bz2 |
compiler: Prohibit comparisons of funcs, maps, and slices to non-nil.
From-SVN: r182703
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |