Comments (5)
Thanks for the report.
Interestingly, this problem appears to have been around for quite some time; I can reproduce it at tip, then in 1.22 all the way back to 1.16 (works ok in 1.15).
@golang/compiler
from go.
Related Issues
- cmd/compile: global variable initialization done in unexpected order #51913 (closed)
- cmd/compile: internal compiler error: unexpected untyped type: untyped int #50635 (closed)
- cmd/compile, go/types, types2: unclear error message on initialization loop and invalid parameter type #47059
- cmd/compile: internal compiler error: got untyped bool for autotmp #17551 (closed)
- cmd/compile: cannot use s (type [][]Typ) as type []go.shape.[]int_0 in assignment #55964 (closed)
- internal compiler error: bad type for ... argument #46195 (closed)
- cmd/compile: internal compiler error with zero-size types #65808 (closed)
- cmd/compile: internal compiler error: found illegal assignment FUNC-func() T₁ -> main.T₁; #48137 (closed)
- cmd/compile: internal compiler error: 'main': Value live at entry. It shouldn't be #52590 (closed)
- internal compiler error: bad type for ... argument: [2]string #45913 (closed)
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
from go.
I have a nasty suspicion this is something in expand_calls.
from go.
Actually, this panics in the frontend
https://go.dev/play/p/AwgUrKVlv9_Z?v=gotip
./prog.go:7:5: internal compiler error: unexpected initialization statement: a, b = .autotmp_0, .autotmp_1
goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x5e
cmd/compile/internal/base.FatalfAt({0x479e91?, 0x0?}, {0xe4cd0e, 0x27}, {0xc00045b728, 0x1, 0x1})
/usr/local/go/src/cmd/compile/internal/base/print.go:230 +0x1ea
cmd/compile/internal/staticinit.(*Schedule).tryStaticInit(0xc00045b880, {0xfa51a0, 0xc000437aa0})
/usr/local/go/src/cmd/compile/internal/staticinit/sched.go:106 +0x1f7
cmd/compile/internal/staticinit.(*Schedule).StaticInit(0xc00045b880, {0xfa51a0, 0xc000437aa0})
/usr/local/go/src/cmd/compile/internal/staticinit/sched.go:58 +0x26
cmd/compile/internal/pkginit.MakeTask()
/usr/local/go/src/cmd/compile/internal/pkginit/init.go:99 +0x945
cmd/compile/internal/gc.Main(0xe66fe8)
/usr/local/go/src/cmd/compile/internal/gc/main.go:244 +0xffd
main.main()
/usr/local/go/src/cmd/compile/main.go:57 +0xf9
from go.
Change https://go.dev/cl/596055 mentions this issue: cmd/compile: fix ICE when compiling global a, b = f()
from go.
Related Issues (20)
- cmd/internal/testdir: test fails when GOAMD64 is specified in goenv file HOT 2
- x/tools/gopls: evaluation of build tags used in imported packages must be optional HOT 3
- build: cmd/internal/moddeps failures HOT 1
- build: cmd/cgo/internal/testplugin failures HOT 1
- build failure >= 1.18 on windows arm32 HOT 1
- cmd/compile: teach BCE about `min` builtin HOT 1
- x/tools/internal/refactor/inline: avoid unnecessary interface conversions
- x/build: perf builders are failing to build cockroachdb for baseline at tip HOT 8
- go/build: setting UseAllFiles still invokes go command
- crypto/x509: Get "https://google.com": tls: failed to verify certificate: SecPolicyCreateSSL error: 0 when running in child after parent exits HOT 5
- x/oscar/internal/httprr.RoundTrip can delete os.DevNull during test.TestErrors HOT 1
- [windows 10] cgo thread hangs forever HOT 1
- net/http: EnableFullDuplex without closing Request.Body panics with invalid concurrent Body.Read call HOT 4
- runtime/pprof: TestProfilerStackDepth/mutex times out HOT 2
- runtime/pprof: TestProfilerStackDepth/mutex failures HOT 5
- net: TestCloseWrite/tcp failures HOT 1
- crypto/tls: TestCrossVersionResume/TLSv12 failures HOT 1
- net/http: TestTimeoutHandlerEmptyResponse/h2 failures HOT 1
- x/tools/internal/refactor/inline: offer an option to inline all calls in a file HOT 2
- spec: initialization ordering does not consider references in interface methods HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go.