diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-14 00:47:48 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-14 00:47:48 +0000 |
| commit | e69e338f7fd650997df7aa32a71b0fe6c3df0b9b (patch) | |
| tree | 61c7adbea32b78ed15dc8f66f3a94e6abf4c7ca5 | |
| parent | 1544afa96cbaf4edac7d614044af7ab7754bf4b7 (diff) | |
| download | ppe42-gcc-e69e338f7fd650997df7aa32a71b0fe6c3df0b9b.tar.gz ppe42-gcc-e69e338f7fd650997df7aa32a71b0fe6c3df0b9b.zip | |
* pt.c (check_explicit_specialization): Use CP_DECL_CONTEXT even more.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109693 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
| -rw-r--r-- | gcc/cp/pt.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ac1e073186e..8c5a33c7043 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2006-01-13 Jason Merrill <jason@redhat.com> + * pt.c (check_explicit_specialization): Use CP_DECL_CONTEXT even more. + * name-lookup.c (set_decl_namespace): Use CP_DECL_CONTEXT. * pt.c (check_explicit_specialization): Likewise. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b828f569a12..23c84cde0da 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1901,7 +1901,7 @@ check_explicit_specialization (tree declarator, /* Find the namespace binding, using the declaration context. */ - fns = lookup_qualified_name (current_namespace, dname, + fns = lookup_qualified_name (CP_DECL_CONTEXT (decl), dname, false, true); if (!fns || !is_overloaded_fn (fns)) { @@ -1911,7 +1911,7 @@ check_explicit_specialization (tree declarator, else { tree fn = OVL_CURRENT (fns); - if (!is_associated_namespace (current_namespace, + if (!is_associated_namespace (CP_DECL_CONTEXT (decl), CP_DECL_CONTEXT (fn))) error ("%qD is not declared in %qD", decl, current_namespace); |

