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

David Blaikie <[email protected]> changed:

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

--- Comment #1 from David Blaikie <[email protected]> ---
get_and_erase invokes UB by returning a reference to a local object

What you probably want is to return by value from get_and_erase, not by (albeit
rvalue) reference.

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

Reply via email to