Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-03-16 Thread Martin Sebor via Gcc-patches
On 3/9/22 06:17, Richard Biener wrote: On Fri, Feb 11, 2022 at 12:05 AM Martin Sebor via Gcc-patches wrote: On 2/8/22 15:37, Jason Merrill wrote: On 2/8/22 16:59, Martin Sebor wrote: Transforming a by-value arguments to by-reference as GCC does for some class types can trigger -Wdangling-poi

Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-03-09 Thread Richard Biener via Gcc-patches
On Fri, Feb 11, 2022 at 12:05 AM Martin Sebor via Gcc-patches wrote: > > On 2/8/22 15:37, Jason Merrill wrote: > > On 2/8/22 16:59, Martin Sebor wrote: > >> Transforming a by-value arguments to by-reference as GCC does for some > >> class types can trigger -Wdangling-pointer when the argument is u

PING [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-03-01 Thread Martin Sebor via Gcc-patches
Pinging the two patches here: https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590230.html On 2/10/22 16:04, Martin Sebor wrote: On 2/8/22 15:37, Jason Merrill wrote: On 2/8/22 16:59, Martin Sebor wrote: Transforming a by-value arguments to by-reference as GCC does for some class types

Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-02-10 Thread Martin Sebor via Gcc-patches
On 2/8/22 15:37, Jason Merrill wrote: On 2/8/22 16:59, Martin Sebor wrote: Transforming a by-value arguments to by-reference as GCC does for some class types can trigger -Wdangling-pointer when the argument is used to store the address of a local variable.  Since the stored value is not accessib

Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-02-09 Thread Jason Merrill via Gcc-patches
On 2/9/22 03:30, Richard Biener wrote: On Tue, Feb 8, 2022 at 11:38 PM Jason Merrill via Gcc-patches wrote: On 2/8/22 16:59, Martin Sebor wrote: Transforming a by-value arguments to by-reference as GCC does for some class types can trigger -Wdangling-pointer when the argument is used to store

Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-02-09 Thread Richard Biener via Gcc-patches
On Tue, Feb 8, 2022 at 11:38 PM Jason Merrill via Gcc-patches wrote: > > On 2/8/22 16:59, Martin Sebor wrote: > > Transforming a by-value arguments to by-reference as GCC does for some > > class types can trigger -Wdangling-pointer when the argument is used > > to store the address of a local vari

Re: [PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-02-08 Thread Jason Merrill via Gcc-patches
On 2/8/22 16:59, Martin Sebor wrote: Transforming a by-value arguments to by-reference as GCC does for some class types can trigger -Wdangling-pointer when the argument is used to store the address of a local variable.  Since the stored value is not accessible in the caller the warning is a false

[PATCH] handle "invisible" reference in -Wdangling-pointer (PR104436)

2022-02-08 Thread Martin Sebor via Gcc-patches
Transforming a by-value arguments to by-reference as GCC does for some class types can trigger -Wdangling-pointer when the argument is used to store the address of a local variable. Since the stored value is not accessible in the caller the warning is a false positive. The attached patch handles