[LLVMbugs] [Bug 2729] Overflow in constant expressions not caught

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 15 23:38:35 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=2729

Chengnian Sun <chengniansun at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |chengniansun at gmail.com
         Resolution|FIXED                       |---

--- Comment #13 from Chengnian Sun <chengniansun at gmail.com> ---
I think the bug is still there. I have the following code

///////////////////// clang-constant-overflow.c ////////////
char g = 0x8FL;
/////////////////////// end ///////////////////////////////  


I use the following command to compile it
$clang-trunk -Wall -Wextra -c -pedantic -std=c11 clang-constant-overflow.c
$cat clang-constant-overflow.c
char g = 0x8FL;
$clang-trunk --version
clang version 3.5 (trunk 198918)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140116/772e5a11/attachment.html>


More information about the llvm-bugs mailing list