]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/92106 - ICE with structured bindings and -Wreturn-local-addr.
authorMarek Polacek <polacek@redhat.com>
Tue, 22 Oct 2019 15:21:34 +0000 (15:21 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 22 Oct 2019 15:21:34 +0000 (15:21 +0000)
commitd986a59558608834f3259da4bc5f64a868f89774
tree1fe40d2e8c7a2c4dc092cabe57beece6b042462f
parent2d39687a2920d1788a6a5ab0b6e7d55eb4975156
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.

From-SVN: r277294
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp1z/decomp50.C [new file with mode: 0644]