[Bug c++/89561] feature request: undefined behaviour configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561 --- Comment #2 from bugsthecode at mail dot ru --- (In reply to Andrew Pinski from comment #1) > -fsantize=undefined does exactly what 6ou want. No, -fsanitize=undefined adds code to detect and report UB at runtime. In mentioned bugs gcc generate
[Bug c++/89561] feature request: undefined behaviour configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561 --- Comment #1 from Andrew Pinski --- -fsantize=undefined does exactly what 6ou want.