diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 18050a22b5e..13c12e7de53 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -a99959e6a4a899cfcc4d46e6b54da15d23c58a14 +cc70be24502faeffefb66fd0abeb7f20a6c7792a The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 757758e14fa..a9630b28bc0 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -6899,6 +6899,8 @@ Function_declaration::import_function_body(Gogo* gogo, Named_object* no) if (fntype->is_method()) { + if (this->nointerface()) + fn->set_nointerface(); const Typed_identifier* receiver = fntype->receiver(); Variable* recv_param = new Variable(receiver->type(), NULL, false, true, true, start_loc);