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
go/types, types2: unsafe.Sizeof panics with expr of value type #76478
Correct — we felt it better to land CL 724140, which fixed more common cases of type loops through values even though it moved this panic to the noder.
The mechanism to efficiently discover A through B{} (and hence report the cycle) is being examined.
Activity
gabyhelp commentedon Nov 26, 2025
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
cuonglm commentedon Nov 27, 2025
With the current tip,
go/typesand types2 seems to accept this invalid program, I think a type loop should be reported?This is now panic during noder instead of typechecker:
mrkfrmn commentedon Dec 1, 2025
Correct — we felt it better to land CL 724140, which fixed more common cases of type loops through values even though it moved this panic to the noder.
The mechanism to efficiently discover
AthroughB{}(and hence report the cycle) is being examined.gopherbot commentedon Dec 3, 2025
Change https://go.dev/cl/726580 mentions this issue:
go/types, types2: add check for finite memory at value observancego/types, types2: add check for finite size at value observance