Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonyghita/repro
A small reproducer for an internal compiler error introduced in Go 1.16
https://github.com/tonyghita/repro
Last synced: 9 days ago
JSON representation
A small reproducer for an internal compiler error introduced in Go 1.16
- Host: GitHub
- URL: https://github.com/tonyghita/repro
- Owner: tonyghita
- Created: 2021-02-18T00:34:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T17:48:10.000Z (almost 4 years ago)
- Last Synced: 2024-10-29T12:06:39.796Z (about 2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repro
> A small reproduction for a Go 1.16 internal compiler error.
The issue is tracked at .
I wasn't able to figure out how to run this reproduction on play.golang.org, so I made this small repository instead.
I was able to `git bisect` the commit which introduced this error to .
To reproduce the issue, run tests using *Go1.16*.
```sh
git clone https://github.com/tonyghita/repro.git
cd repro
go test ./...
```You should see the output
```sh
# github.com/tonyghita/repro_test [github.com/tonyghita/repro.test]
./repro_test.go:10:13: internal compiler error: 'TestF.func1': Value live at entry. It shouldn't be. func TestF.func1, node ~R0, value v19Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
FAIL github.com/tonyghita/repro [build failed]
FAIL
```Verify that the issue does not exist on Go 1.15.
```sh
go get golang.org/dl/go1.15
go1.15 downloadgo1.15 test ./...
```