https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121978
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Mathias Stearn from comment #0) > Created attachment 62401 [details] > repro.cpp > > Lightly modified from the repro for > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101244 while trying out a > workaround. Filing a new bug since this is an ICE that occurs in trunk (16) > but not in 15.1. > A new bug is a good idea anyway, but you should try the "(with assertions)" compilers on godbolt. Trunk defaults to those.