Commit 8329559d by Jason Merrill

revert: re PR c++/13294 (namespace associations vs. specializations)

Revert:
        PR c++/13294
        * pt.c (maybe_process_partial_specialization): Remember the
        context of a specialization.

From-SVN: r80689
parent aeb95628
......@@ -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 <jason@redhat.com>
PR c++/13294
* pt.c (maybe_process_partial_specialization): Remember the
context of a specialization.
2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
* cxx-pretty-print.c: Fix comment typos.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment