https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121978
--- Comment #2 from Mathias Stearn <redbeard0531 at gmail dot com> --- Facepalm. Ok, not actually a regression. Repros on at least 14 and 15 when assertions are enabled: https://godbolt.org/z/1dMPh8sax