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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Oct 11 13:46:27 2018
New Revision: 265041

URL: https://gcc.gnu.org/viewcvs?rev=265041&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:
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp48.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to