This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r260752 - in /branches/c++-modules: ChangeLog.m...


Author: nathan
Date: Fri May 25 11:09:08 2018
New Revision: 260752

URL: https://gcc.gnu.org/viewcvs?rev=260752&root=gcc&view=rev
Log:
	Direct import lambda returns!
	gcc/cp/
	* module.c (depset::decl_key): Remove assert.
	(trees_{in,out}::core_vals): Serialize type context, lambda expr and
	decl size & value.
	(trees_out::tree_decl): Spot voldemort returns. Ident by index.
	(trees_in::tree_node): Ident by index.
	(trees_in::finish_type): Don't set type context here.
	(depset::hash::add_dependency): Namespaces are also ok.
	* decl.c (fndecl_declared_return_type): Default to auto.
	* decl2.c (no_linkage_error): Ignore imported decls.
	* name-lookup.h (lookup_by_ident): Ident is index.
	(get_lookup_ident): Declare.
	* name-lookup.c (get_binding_or_decl): New.
	(lookup_by_ident): Use it.  Ident is index.
	(get_lookup_ident): New.
	gcc/testsuite/
	* g++.dg/modules/vmort-1_[ab].C: New.
	* g++.dg/modules/lambda-1_[ab].C: New.

Added:
    branches/c++-modules/gcc/testsuite/g++.dg/modules/lambda-1_a.C
    branches/c++-modules/gcc/testsuite/g++.dg/modules/lambda-1_b.C
    branches/c++-modules/gcc/testsuite/g++.dg/modules/vmort-1_a.C
    branches/c++-modules/gcc/testsuite/g++.dg/modules/vmort-1_b.C
Removed:
    branches/c++-modules/gcc/testsuite/g++.dg/modules/defer-1.C
Modified:
    branches/c++-modules/ChangeLog.modules
    branches/c++-modules/gcc/cp/decl.c
    branches/c++-modules/gcc/cp/decl2.c
    branches/c++-modules/gcc/cp/module.c
    branches/c++-modules/gcc/cp/name-lookup.c
    branches/c++-modules/gcc/cp/name-lookup.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]