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

Richard Smith <[email protected]> changed:

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

--- Comment #1 from Richard Smith <[email protected]> ---
This is all correct; falling of a value-returning function has undefined
behavior in C++ (and not in C). At -O0, the undefined behavior causes a trap;
at -O1 and above, we optimize on the basis of it being unreachable.

Your "-w" is suppressing both the warning telling you the code is broken and
the warning telling you that using "clang++" causes the ".c" input to be
treated as a C++ source file.

-- 
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