https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98151
--- Comment #5 from Brad Bell <bradley_bell at yahoo dot com> ---
Compiling with
g++ -fsanitize=undefined -O2 int_output.cpp -o int_output
does in fact give a very useful message
I scanned the page
https://www.gnu.org/software/gcc/bugs/
and looked for things that might be related to my bug.
Sorry I missed the most important flag (for my case) at the top.
It might help others to have the individual compiler flags in bold or in a
list.
Thanks again
Brad.