You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached code is miscompiled at optimization levels -Os and above and the checks in checked_add function are apparently ignored.
Reproduced on FreeBSD and Windows with clang 3.5.0 (release=r217039) and 3.6.0(tags/RELEASE_360/final).
The text was updated successfully, but these errors were encountered:
signed integer overflow (as happens at the beginning of the call to checked_add when passed max_int) is undefined. Since your program unconditionally executes that addition, the behavior of the entire program is undefined - nothing it does, even before the point of the addition, is guaranteed by the C++ standard.
llvmbot
transferred this issue from llvm/llvm-bugzilla-archive
Dec 9, 2021
Extended Description
The attached code is miscompiled at optimization levels -Os and above and the checks in checked_add function are apparently ignored.
Reproduced on FreeBSD and Windows with clang 3.5.0 (release=r217039) and 3.6.0(tags/RELEASE_360/final).
The text was updated successfully, but these errors were encountered: