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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Oct 11 17:42:29 2018
New Revision: 265050

URL: https://gcc.gnu.org/viewcvs?rev=265050&root=gcc&view=rev
Log:
        PR c++/87582
        * typeck.c (maybe_warn_about_returning_address_of_local): If
        whats_returned is a structured binding identifier and the structured
        binding is a reference, recurse on its initializer.

        * g++.dg/cpp1z/decomp48.C: New test.

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

Reply via email to