https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115864
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note ubsan (-fsanitize=undefined) gives an runtime message as expected: /app/example.cpp:11:17: runtime error: signed integer overflow: 65535 * 65535 cannot be represented in type 'int'