reflect: func created w/MakeFunc
returns mangled value when used as a parameter to another func via Call
on ARM
#53395
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?OS X 12.4 (Monterey) Apple M1 Pro (ARM)
go env
OutputWhat did you do?
https://go.dev/play/p/Vcob_D0J733
What did you expect to see?
Both tests should pass on ARM.
What did you see instead?
Second test fails, i.e the one that tests calling a function with reflect.
Prose
As the title indicates, on ARM, it appears that
MakeFunc
results in afunc
that returns a mangled value when used as a parameter to another function that was invoked usingCall
. This problem does not occur onamd64
architectures, it is currently, at the very least, a problem on ARM architectures.The text was updated successfully, but these errors were encountered: