Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: investigate closure capture issue #18300
I suspect this would require a finer-grained escape analysis. Contrast these:
There's only one declaration in the first example. Escape analysis works on declarations. So
I guess escape analysis would have to be augmented to split declarations into unconnected subsets somehow and then treat each subset independently.