r276194 - in /branches/c++-modules: ChangeLog.m...
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Fri Sep 27 18:34:00 GMT 2019
Author: nathan
Date: Fri Sep 27 18:33:59 2019
New Revision: 276194
URL: https://gcc.gnu.org/viewcvs?rev=276194&root=gcc&view=rev
Log:
gcc/cp/
* cp-tree.h (set_{originating,instantiating}_module): Declare.
* class.c (layout_class_type): Use set_instantiating_module.
* pt.c (lookup_template_class_1): Likewise.
(tsubst_function_decl, instantiate_template_1): Likewise.
(tsubst_friend): Not here.
* decl.c (grokfndecl): Use set_originating_module.
(grokvardecl,grokdeclarator): Likewise.
* name-lookup.c (do_pushtag): Likewise.
* friend.c (do_friend): Not here.
* module.cc (set_implicit_module_origin): Rename to ...
(set_instantiating_module): ... here.
(set_originating_module): New.
gcc/testsuite/
* g++.dg/modules/friend-3.C: New.
* g++.dg/modules/friend-4_[ab].C: New.
Added:
branches/c++-modules/gcc/testsuite/g++.dg/modules/friend-3.C
branches/c++-modules/gcc/testsuite/g++.dg/modules/friend-4_a.C
branches/c++-modules/gcc/testsuite/g++.dg/modules/friend-4_b.C
Modified:
branches/c++-modules/ChangeLog.modules
branches/c++-modules/gcc/cp/class.c
branches/c++-modules/gcc/cp/cp-tree.h
branches/c++-modules/gcc/cp/decl.c
branches/c++-modules/gcc/cp/friend.c
branches/c++-modules/gcc/cp/module.cc
branches/c++-modules/gcc/cp/name-lookup.c
branches/c++-modules/gcc/cp/pt.c
More information about the Gcc-cvs
mailing list