cmd/compile: //go:uintptrescapes doesn't work with anonymous parameters #23045
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
If you remove the
a
parameter name fromF1
andF2
in uintptrescapes2.go (i.e., change them tofunc F1(uintptr) {}
andfunc F2(...uintptr) {}
), the test fails.I suspect in practice this particular issue doesn't matter in practice, but looking at the code, I can't obviously see why the parameter names should be relevant in either
(*EscState).esctag
orordercall
. It makes me worry that escape analysis / pragma tags might not be working correctly in some other more realistic scenarios./cc @ianlancetaylor
The text was updated successfully, but these errors were encountered: