r234926 - in /trunk/gcc: cp/ChangeLog cp/tree.c...

ppalka@gcc.gnu.org ppalka@gcc.gnu.org
Wed Apr 13 00:06:00 GMT 2016


Author: ppalka
Date: Wed Apr 13 00:06:51 2016
New Revision: 234926

URL: https://gcc.gnu.org/viewcvs?rev=234926&root=gcc&view=rev
Log:
Fix PR c++/70610 (wrong overload resolution during template processing)

gcc/cp/ChangeLog:

	PR c++/70610
	* tree.c (lvalue_kind) [NON_DEPENDENT_EXPR]: Unconditionally
	recurse into it.
	* typeck.c (build_x_conditional_expr): Unconditionally remember
	that the result is an lvalue or xvalue.

gcc/testsuite/ChangeLog:

	PR c++/70610
	* g++.dg/template/pr70610.C: New test.
	* g++.dg/template/pr70610-2.C: New test.
	* g++.dg/template/pr70610-3.C: New test.
	* g++.dg/template/pr70610-4.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/template/pr70610-2.C
    trunk/gcc/testsuite/g++.dg/template/pr70610-3.C
    trunk/gcc/testsuite/g++.dg/template/pr70610-4.C
    trunk/gcc/testsuite/g++.dg/template/pr70610.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list