You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: allow interface pointers to be used as pointers to subset interface types in calls, rather than being unable to obtain addresses #63304
changed the title [-]Allow interface pointers to be used as pointers to subset interface types in calls, rather than being unable to obtain addresses[/-][+]cmd/compile: allow interface pointers to be used as pointers to subset interface types in calls, rather than being unable to obtain addresses[/+]on Sep 30, 2023
Hi @qiulaidongfeng this seems more like a language question as opposed to a compiler bug -- the compiler is being consistent with the way the language is defined. If you have questions about addressability in Go, probably best to consult a forum like golang-nuts mailing list.
Activity
[-]Allow interface pointers to be used as pointers to subset interface types in calls, rather than being unable to obtain addresses[/-][+]cmd/compile: allow interface pointers to be used as pointers to subset interface types in calls, rather than being unable to obtain addresses[/+]zigo101 commentedon Sep 30, 2023
Now, intermediate values can't be taken addresses in Go: https://go101.org/article/unofficial-faq.html#unaddressable-values
thanm commentedon Sep 30, 2023
Hi @qiulaidongfeng this seems more like a language question as opposed to a compiler bug -- the compiler is being consistent with the way the language is defined. If you have questions about addressability in Go, probably best to consult a forum like golang-nuts mailing list.