https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119512
--- Comment #2 from Peter Damianov <peter0x44 at disroot dot org> --- Andrew is correct that I reduced it too much, and replacing the attempt at providing deque with #include <deque> does diagnose it. But the original source I reduced it out of doesn't diagnose at any optimization levels. I will attach it in case someone is willing to see what is up with it also.