This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r242924 - in /trunk/gcc: cp/ChangeLog cp/typeck...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 28 Nov 2016 15:21:54 -0000
- Subject: r242924 - in /trunk/gcc: cp/ChangeLog cp/typeck...
Author: jakub
Date: Mon Nov 28 15:21:53 2016
New Revision: 242924
URL: https://gcc.gnu.org/viewcvs?rev=242924&root=gcc&view=rev
Log:
PR c++/77591
* typeck.c (maybe_warn_about_returning_address_of_local): Optimize
whats_returned through fold_for_warn.
* g++.dg/cpp1y/pr77591.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr77591.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog