cmd/compile: type2 reports wrong internal compiler error with -d=panic #44445
Labels
Milestone
Comments
Probably we should just move the go/src/cmd/compile/internal/noder/irgen.go Lines 69 to 74 in d4b2638 That would ensure we exit gracefully if we've reported any errors, and still ICE if for some unusual reason typechecking failed but we didn't report any errors. |
Change https://golang.org/cl/294850 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?tip
Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile this program with
go tool compile -d=panic -G=1 main.go
What did you expect to see?
What did you see instead?
The old type checker is also panic, but that's a real bug there which I fixed in https://go-review.googlesource.com/c/go/+/294031/5
The text was updated successfully, but these errors were encountered: