https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64238
--- Comment #6 from Ian Lance Taylor <ian at airs dot com> --- I'm sorry, I still can't recreate it. I'm now at SVN revision 247848. Note that I just committed a number of changes to the Go frontend, and I was using those changes when I tested before. I don't see why they would affect this, but perhaps they do. If that is the case, then you will no longer see a problem either. I edited the gcc_checking_assert at symtab.c:1865 to be a plain gcc_assert, though I think that shouldn't matter. This is what I see: > gccgo -flto pr64238/bytes_decl.go pr64238/bytes.go /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.Count: error: undefined reference to 'go.bytes.IndexByte' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.Count: error: undefined reference to 'go.bytes.Equal' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.Index: error: undefined reference to 'go.bytes.IndexByte' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.Index: error: undefined reference to 'go.bytes.IndexByte' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.Index: error: undefined reference to 'go.bytes.Equal' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function go.bytes.LastIndex: error: undefined reference to 'go.bytes.Equal' /tmp/ccerLD54.ltrans0.ltrans.o:<artificial>:function bytes.genSplit: error: undefined reference to 'go.bytes.Equal' collect2: error: ld returned 1 exit status > gccgo -flto pr64238/bytes_decl.go pr64238/bytes.go -fgo-pkgpath=bytes > echo $? 0