]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix "width not calculated" ICE
authorMatthew Dempsky <mdempsky@google.com>
Fri, 6 Jul 2018 19:14:22 +0000 (12:14 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 6 Jul 2018 20:25:52 +0000 (20:25 +0000)
commit8d5fd871d79bd62b04bfadb3b7be0a896029e80c
tree7b61372b7adc4a0b5f6f7e418d7d9e2d6ce64289
parentbe1dfb0e1acc676b1b2de4c1802e047a56e146ab
cmd/compile: fix "width not calculated" ICE

Expanding interface method sets is handled during width calculation,
which can't be performed concurrently. Make sure that we eagerly
expand interfaces in the frontend when importing them, even if they're
not actually used by code, because we might need to generate a type
description of them.

Fixes #25055.

Change-Id: I6fd2756de2c7d5dbc33056f70b3028ca3aebab41
Reviewed-on: https://go-review.googlesource.com/122517
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/iimport.go
test/fixedbugs/issue25055.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue25055.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue25055.go [new file with mode: 0644]