Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: heap allocation of go:notinheap type via string conversion #28243
cmd/compile accepts this program, even though it involves a heap allocation of a go:notinheap type:
Unlikely that this would ever be written within package runtime, but seems worth preventing. I think it's just a matter of disallowing string -> T conversions where T is go:notinheap, like how *T to *U conversions are already special-cased for go:notinheap in convertop.