]> gcc.gnu.org Git - gcc.git/commit
re PR c++/44859 (missed warning: returning reference to temporary)
authorPatrick Palka <patrick@parcs.ath.cx>
Tue, 1 Apr 2014 00:48:33 +0000 (20:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 1 Apr 2014 00:48:33 +0000 (20:48 -0400)
commit75d850f3681a4f907b43983936db7f28a2ec230d
tree830660eae8355c31ce7b0fcf6569c8b5bbd927b3
parent3020dc6e31cc701e5e19b4d680271b9f84437c93
re PR c++/44859 (missed warning: returning reference to temporary)

PR c++/44859
* typeck.c (maybe_warn_about_returning_address_of_local): Unwrap
COMPONENT_REFs and ARRAY_REFs sooner.

From-SVN: r208970
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/warn/Wreturn-local-addr-2.C [new file with mode: 0644]
This page took 0.054143 seconds and 5 git commands to generate.