aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl-function.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-10-11 15:46:27 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-10-11 15:46:27 +0200
commitf9f3b77cf5290a8417cfc450b936039c78f6618b (patch)
tree925b629f996ac7888768a79b60da306c0fd16eb4 /gcc/read-rtl-function.c
parent954ad1127eb4d367be1ece52e34ce15334d40c5e (diff)
downloadgcc-f9f3b77cf5290a8417cfc450b936039c78f6618b.zip
gcc-f9f3b77cf5290a8417cfc450b936039c78f6618b.tar.gz
gcc-f9f3b77cf5290a8417cfc450b936039c78f6618b.tar.bz2
re PR c++/87582 (Returning a reference to a data member via structured bindings dangles)
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. From-SVN: r265041
Diffstat (limited to 'gcc/read-rtl-function.c')
0 files changed, 0 insertions, 0 deletions