[Bug middle-end/104492] [12 Regression] Bogus dangling pointer warning at -O3

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 27 16:48:12 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104492

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:948e8e401023f6c3153f6d0c449bc5c2899ee7b7

commit r12-8289-g948e8e401023f6c3153f6d0c449bc5c2899ee7b7
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Apr 27 18:47:10 2022 +0200

    testsuite: Add testcase for dangling pointer equality bogus warning
[PR104492]

    On Wed, Apr 27, 2022 at 12:02:33PM +0200, Richard Biener wrote:
    > I did that but the reduction result did not resemble the same failure
    > mode.  I've failed to manually construct a testcase as well.  Possibly
    > a testcase using libstdc++ but less Qt internals might be possible.

    Here is a testcase that I've managed to reduce, FAILs with:
    FAIL: g++.dg/warn/pr104492.C  -std=gnu++14  (test for bogus messages, line
111)
    FAIL: g++.dg/warn/pr104492.C  -std=gnu++17  (test for bogus messages, line
111)
    FAIL: g++.dg/warn/pr104492.C  -std=gnu++20  (test for bogus messages, line
111)
    on both x86_64-linux and i686-linux without your commit and passes with it.

    2022-04-27  Jakub Jelinek  <jakub@redhat.com>

            PR middle-end/104492
            * g++.dg/warn/pr104492.C: New test.


More information about the Gcc-bugs mailing list