https://bugs.llvm.org/show_bug.cgi?id=47702
David Blaikie <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |[email protected]
Status|NEW |RESOLVED
--- Comment #1 from David Blaikie <[email protected]> ---
This program has undefined behavior.
The lambda captures the value by reference, but the value goes out of scope at
the end of 'func', before the lambda is called. So the lambda has a dangling
reference.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs