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

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
This code has undefined behavior. C++ does not allow control to reach the end
of a non-void function. At -O0, we give you a guaranteed crash when this
happens; at -O1 and above, we optimize on the assumption that this undefined
behavior does not occur. In all modes, we give you a warning that your code is
(probably) broken.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to