diff options
Diffstat (limited to 'gcc/cp/call.cc')
-rw-r--r-- | gcc/cp/call.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/call.cc b/gcc/cp/call.cc index 7c4ecf0..e058da7 100644 --- a/gcc/cp/call.cc +++ b/gcc/cp/call.cc @@ -13802,6 +13802,9 @@ make_temporary_var_for_ref_to_temp (tree decl, tree type) tree name = mangle_ref_init_variable (decl); DECL_NAME (var) = name; SET_DECL_ASSEMBLER_NAME (var, name); + + /* Set the context to make the variable mergeable in modules. */ + DECL_CONTEXT (var) = current_scope (); } else /* Create a new cleanup level if necessary. */ |