Re: r337790 - Warn if a local variable's initializer retains a pointer/reference to a

2018-07-25 Thread Eric Fiselier via cfe-commits
Nice! This found one bug in the libc++abi tests (r337906), and started diagnosing the dangling tuple reference case that libc++ worked hard to diagnose manually (r337905). /Eric On Mon, Jul 23, 2018 at 6:55 PM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith >

r337790 - Warn if a local variable's initializer retains a pointer/reference to a

2018-07-23 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jul 23 17:55:08 2018 New Revision: 337790 URL: http://llvm.org/viewvc/llvm-project?rev=337790&view=rev Log: Warn if a local variable's initializer retains a pointer/reference to a non-lifetime-extended temporary object. Added: cfe/trunk/test/SemaCXX/warn-dangling-loca