[llvm-bugs] [Bug 47189] Infinite loop inside static function incorrectly optimized away

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 17 10:31:01 PDT 2020


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

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
Infinite loops are Undefined Behavior in C++ (I believe in C as well). 

See the "progress guarantee" part here:
https://en.cppreference.com/w/cpp/language/memory_model (you can find similar
wording in the C++ standard itself, but this is easier to link to/read/etc)

-- 
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/20200817/758b86c8/attachment.html>


More information about the llvm-bugs mailing list