[llvm-bugs] [Bug 28249] Missing warning about uninitialized var when going through a pointer

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 21 15:47:33 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28249

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Reid Kleckner <rnk at google.com> ---
It is our general policy that optimizations should not emit warnings, so even
though the optimizer sees undef, Clang will not emit warnings. That would make
your build success dependent on optimization level, which is widely considered
to be a Bad Thing.

Note that gcc -O0 does not find this bug either.

-- 
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/20160621/64472f4a/attachment-0001.html>


More information about the llvm-bugs mailing list