r242056 - in /trunk/gcc: cp/ChangeLog cp/conste...

jason@gcc.gnu.org jason@gcc.gnu.org
Thu Nov 10 21:42:00 GMT 2016


Author: jason
Date: Thu Nov 10 21:42:36 2016
New Revision: 242056

URL: https://gcc.gnu.org/viewcvs?rev=242056&root=gcc&view=rev
Log:
	PR c++/77337 - auto return and lambda

	* pt.c (tsubst_friend_function): Don't set DECL_INITIAL.
	(instantiate_decl): It's OK to defer a constexpr function.
	* cp-tree.h (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION): Check
	DECL_LANG_SPECIFIC.
	* decl2.c (decl_defined_p): Use it.  No longer static.
	* decl.c (redeclaration_error_message): Use decl_defined_p.
	* constexpr.c (cxx_eval_call_expression): Set input_location around
	call to instantiate_decl.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn33.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/pt.c



More information about the Gcc-cvs mailing list