This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/60870] go interface methods broken on ppc64le (bug296.go)
- From: "ian at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Apr 2014 19:27:54 +0000
- Subject: [Bug go/60870] go interface methods broken on ppc64le (bug296.go)
- Auto-submitted: auto-generated
- References: <bug-60870-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60870
--- Comment #6 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Thu Apr 17 19:27:22 2014
New Revision: 209494
URL: http://gcc.gnu.org/viewcvs?rev=209494&root=gcc&view=rev
Log:
PR go/60870
compiler: Don't convert function type for an interface method.
For an interface method the function type is the type without
the receiver, which is wrong since we are passing a receiver.
The interface method will always have the correct type in this
case, so no type conversion is necessary.
Also don't do the type conversion when calling a named
function, since in that case the type is also always correct.
The type can be wrong, and the conversion required, when the
function type refers to itself recursively.
Modified:
trunk/gcc/go/gofrontend/expressions.cc