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
This program should run silently and exit with success.
With Go 1.18 and tip, it silently miscompiles as a program that raises a runtime panic instead.
Normally, I'm of the opinion that silent miscompilations are severe issues that merit a backport and fix. But I think this case is very unlikely in practice. If anyone disagrees or thinks there's an easy way to fix the 1.18 frontend to handle this correctly (or at least ICE instead), feel free to speak up.
https://go.dev/play/p/4Wa1-HERtli?v=gotip
This program should run silently and exit with success.
With Go 1.18 and tip, it silently miscompiles as a program that raises a runtime panic instead.
Normally, I'm of the opinion that silent miscompilations are severe issues that merit a backport and fix. But I think this case is very unlikely in practice. If anyone disagrees or thinks there's an easy way to fix the 1.18 frontend to handle this correctly (or at least ICE instead), feel free to speak up.
/cc @randall77 @dr2chase @cuonglm
The text was updated successfully, but these errors were encountered: