https://bugs.llvm.org/show_bug.cgi?id=42047
Anton Korobeynikov <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Anton Korobeynikov <[email protected]> ---
The code has undefined behavior because it relies on signed integer overflow.
If you'd compile with -fsanitize=undefined, then it will clearly report it to
you:
1.c:8:15: runtime error: signed integer overflow: 1162261467 * 3 cannot be
represented in type 'int'
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs