cmd/compile: testing with -race emits internal compiler error #53519
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Admittedly, this is difficult for me to reproduce outside of my specific
environment. Especially, if I move these three files out of my module's
directory to a new module, I cannot reproduce the error.
I am very willing for this to be closed without further review, but given the
time I've invested, at least wanted to publish my findings.
From a project of mine with many files, I have distilled to a minimum working
example shown below:
go.mod
main.go
main_test.go
I try to test, then test with the race detector...
What did you expect to see?
What did you see instead?
Workarounds
MyInterface
belowbPointer *B[int]
in structimpl
resolves the issue.MethodA
orMethodB
from their respective structs resolves the issue.New2
from the test file resolves the issue.A
orB
non-generic resolves the issue.go clean -cache
,go clean -modcache
, and restarting my terminal has also resolved the issue.The text was updated successfully, but these errors were encountered: