Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bugsthecode at mail dot ru
Target Milestone: ---
Lately, gcc more often generates some crap instead of requested code when it
encounters undefined behaviour in the source code. It might be a good idea to
provide a common
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561
bugsthecode at mail dot ru changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561
--- Comment #8 from bugsthecode at mail dot ru ---
(In reply to Martin Sebor from comment #7)
> It's not possible to detect all instances of undefined behavior and emit
> some "reasonable" or "safe" code (w