https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91576
--- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- Created attachment 47013 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47013&action=edit gzipped C++ source code The attached C++ source code compiled with -std=c++17. No lto required, so might be different bug.