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
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