Re: [PATCH v2] c++: Implement -Wdangling-reference [PR106393]

2022-10-25 Thread Jason Merrill via Gcc-patches
On 10/25/22 11:21, Marek Polacek wrote: On Mon, Oct 24, 2022 at 01:30:42PM -0400, Jason Merrill wrote: On 10/21/22 19:28, Marek Polacek wrote: This patch implements a new experimental warning (enabled by -Wextra) to detect references bound to temporaries whose lifetime has ended. The Great!

[PATCH v2] c++: Implement -Wdangling-reference [PR106393]

2022-10-25 Thread Marek Polacek via Gcc-patches
On Mon, Oct 24, 2022 at 01:30:42PM -0400, Jason Merrill wrote: > On 10/21/22 19:28, Marek Polacek wrote: > > This patch implements a new experimental warning (enabled by -Wextra) to > > detect references bound to temporaries whose lifetime has ended. The > > Great! > > > primary motivation is th