[Bug c++/92106] [8 Regression] ICE with structured bindings and -Wreturn-local-addr

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 22 17:46:00 GMT 2019


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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Oct 22 17:46:12 2019
New Revision: 277296

URL: https://gcc.gnu.org/viewcvs?rev=277296&root=gcc&view=rev
Log:
        PR c++/92106 - ICE with structured bindings and -Wreturn-local-addr.

        * typeck.c (maybe_warn_about_returning_address_of_local): Avoid
        recursing on null initializer and return false instead.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/decomp50.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/typeck.c


More information about the Gcc-bugs mailing list