From 89d22a42c7ab5fa6c3742e621472cf9a434207d6 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 14 Apr 2004 19:46:35 +0000 Subject: [PATCH] Revert: PR c++/13294 * pt.c (maybe_process_partial_specialization): Remember the context of a specialization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80689 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 6 ------ gcc/cp/pt.c | 10 +--------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 984d5de6154..c0b57257caa 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -96,12 +96,6 @@ * error.c (dump_function_name): If T's DECL_LANG_SPECIFIC is null, just print the literal name and return. -2004-03-25 Jason Merrill - - PR c++/13294 - * pt.c (maybe_process_partial_specialization): Remember the - context of a specialization. - 2004-03-25 Kazu Hirata * cxx-pretty-print.c: Fix comment typos. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index ca9a3ca27ab..a70ab61ff63 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -733,15 +733,7 @@ maybe_process_partial_specialization (tree type) { tree tpl_ns = decl_namespace_context (CLASSTYPE_TI_TEMPLATE (type)); if (is_associated_namespace (current_namespace, tpl_ns)) - /* Same or super-using namespace. */ - { - if (DECL_NAMESPACE_SCOPE_P (CLASSTYPE_TI_TEMPLATE (type))) - /* If this is a specialization of a namespace-scope class - template, remember the context of the - specialization. */ - TYPE_CONTEXT (type) = DECL_CONTEXT (TYPE_NAME (type)) - = FROB_CONTEXT (current_namespace); - } + /* Same or super-using namespace. */; else { pedwarn ("specializing `%#T' in different namespace", type); -- 2.11.4.GIT