aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-14 11:44:12 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-15 04:43:58 -0800
commit8dede2411195eb2fd672d8d0c758f94732bd6d77 (patch)
treed04ac5eb5b7e22affa4998f3c21f7548e2866e87 /gcc
parent7640db57113e7a0df9257fa780c8e9deae63a7a2 (diff)
downloadgcc-8dede2411195eb2fd672d8d0c758f94732bd6d77.zip
gcc-8dede2411195eb2fd672d8d0c758f94732bd6d77.tar.gz
gcc-8dede2411195eb2fd672d8d0c758f94732bd6d77.tar.bz2
c++: module-related tweak
In manually applying a name-lookup patch, I managed to transpose two calls. That caused a test failure. Fixed thusly. gcc/cp/ * name-lookup.c (do_namespace_alias): Set originating module before pushing.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/name-lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 03d2bc5..ab669bc 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -6223,10 +6223,10 @@ do_namespace_alias (tree alias, tree name_space)
DECL_NAMESPACE_ALIAS (alias) = name_space;
DECL_EXTERNAL (alias) = 1;
DECL_CONTEXT (alias) = FROB_CONTEXT (current_scope ());
- pushdecl (alias);
-
set_originating_module (alias);
+ pushdecl (alias);
+
/* Emit debug info for namespace alias. */
if (!building_stmt_list_p ())
(*debug_hooks->early_global_decl) (alias);