https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64238

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Ian Lance Taylor from comment #6)
> 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

I can confirm that current trunk works fine. However GCC 7.1 is affected.
Can you reproduce it for 7.1? Are you planning to backport some patches in
order to fix the release?

Reply via email to