Re: [PATCH v2] warn-access: wrong -Wdangling-pointer with labels [PR106080]

2023-02-15 Thread Jakub Jelinek via Gcc-patches
On Wed, Feb 15, 2023 at 08:46:07AM -0500, Marek Polacek wrote: > > Perhaps add dg-bogus above just to make it more clear what > > we are testing in the test? > > Ok, here it is. Ok? Sure, thanks. > PR middle-end/106080 > > gcc/ChangeLog: > > * gimple-ssa-warn-access.cc (is_auto_dec

[PATCH v2] warn-access: wrong -Wdangling-pointer with labels [PR106080]

2023-02-15 Thread Marek Polacek via Gcc-patches
On Wed, Feb 15, 2023 at 10:50:08AM +0100, Jakub Jelinek wrote: > On Tue, Feb 14, 2023 at 10:48:15PM -0500, Marek Polacek via Gcc-patches wrote: > > -Wdangling-pointer warns when the address of a label escapes. This > > causes grief in OCaml () as > > we