Git Product home page Git Product logo

Comments (5)

thanm avatar thanm commented on August 25, 2024 1

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.

gabyhelp avatar gabyhelp commented on August 25, 2024

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

from go.

dr2chase avatar dr2chase commented on August 25, 2024

I have a nasty suspicion this is something in expand_calls.

from go.

cherrymui avatar cherrymui commented on August 25, 2024

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.

gopherbot avatar gopherbot commented on August 25, 2024

Change https://go.dev/cl/596055 mentions this issue: cmd/compile: fix ICE when compiling global a, b = f()

from go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.