r217957 - in /trunk/gcc: cp/ChangeLog cp/call.c...

jason@gcc.gnu.org jason@gcc.gnu.org
Sat Nov 22 02:21:00 GMT 2014


Author: jason
Date: Sat Nov 22 02:21:35 2014
New Revision: 217957

URL: https://gcc.gnu.org/viewcvs?rev=217957&root=gcc&view=rev
Log:
	PR c++/63657
	PR c++/38958
	* call.c (set_up_extended_ref_temp): Set TREE_USED on the reference
	if the temporary has a non-trivial destructor.
	* decl.c (poplevel): Don't look through references.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wunused-var-22.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/decl.c



More information about the Gcc-cvs mailing list