https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105950
--- Comment #22 from John Kanapes <jkanapes at yahoo dot com> --- OK. Removed -lubsan. Added -fsanitize=undefined to linking Same result as all the other flags. It took you 4 posts to explain me what to do. It took me 4 posts to understand what you were talking about. You should explain better.