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

Eli Friedman <efrie...@codeaurora.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #9 from Eli Friedman <efrie...@codeaurora.org> ---
If you really want to understand the edge cases of what's allowed, the rules in
the C++ standard are a better reflection of how compilers actually reason about
uninitialized variables. See
https://stackoverflow.com/questions/23415661/has-c-standard-changed-with-respect-to-the-use-of-indeterminate-values-and-und
.

In any case, just because the compiler appears to do what you want for some
particular case doesn't make it defined; it just means you're getting lucky.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to