New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: internal compiler error: width not calculated: interface {} #25055
Comments
This seems related to -c=4 (any value > 1), i.e., concurrent compilation. Here's a slightly simpler reproducer. With: $ cat a.go
package a
var A chan *interface{} $ cat b.go
package b
import "./a"
var _ = <-a.A To reproduce:
The crash disappears for -c=1 (or no -c). |
That is because the "width not calculated" check is guarded by Fixing this kind of bug (which I did a lot of in 1.9) generally consists of finding the right spot in the front end to insert a |
@josharian Thanks for the input - that matches my understanding. There's possibly a missing dowidth in the new importer (iimport.go). |
I can't reproduce this issue at master or even at cd037bc. Can anyone else? |
@mdempsky I still see the crash @ current tip.
Here what my workspace looks like:
the content of
this is how I build it:
|
Thanks, I can reproduce that now. |
Change https://golang.org/cl/122517 mentions this issue: |
The following 2-packages program (reduced from a gosmith-generated one):
b/b.go
a/a.go
crashes the tip compiler (when building
a
) with:The compiler does not crash if passed
-iexport=false
.cc @mdempsky
The text was updated successfully, but these errors were encountered: