From 10d91e57986941516dc7c0d1c6ec0915d68f614e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 12 Dec 2013 18:45:24 +0000 Subject: compiler: Don't compare structs with blank non-comparable fields. From-SVN: r205937 --- gcc/go/gofrontend/types.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/go') diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 33c23e5..d079565 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -575,9 +575,6 @@ Type::are_compatible_for_comparison(bool is_equality_op, const Type *t1, p != fields->end(); ++p) { - if (Gogo::is_sink_name(p->field_name())) - continue; - if (!p->type()->is_comparable()) { if (reason != NULL) -- cgit v1.1