https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101976
--- Comment #1 from Dmitry Prokoptsev <dprokoptsev at gmail dot com> --- I believe I stumbled on this one as well -- see https://godbolt.org/z/or31cz6eW, although it's not as trivial as the snippet provided here. Reproduces in 10.3 and all subsequent versions.