summaryrefslogtreecommitdiffstats
path: root/gcc/cp/name-lookup.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-06 14:00:31 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-06 14:00:31 +0000
commit6668d73cd2d36103404a65a740c460d1094a6909 (patch)
treec553a4020a51f152abfc5f68f319f966a94907c1 /gcc/cp/name-lookup.c
parentd926ac9fa2ff430ab544517ab9b6e6b0e177ec5a (diff)
downloadppe42-gcc-6668d73cd2d36103404a65a740c460d1094a6909.tar.gz
ppe42-gcc-6668d73cd2d36103404a65a740c460d1094a6909.zip
PR c++/53858
* name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r--gcc/cp/name-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index cc8439c9ccd..97581d914a2 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -4059,7 +4059,7 @@ ambiguous_decl (struct scope_binding *old, cxx_binding *new_binding, int flags)
/* If we expect types or namespaces, and not templates,
or this is not a template class. */
if ((LOOKUP_QUALIFIERS_ONLY (flags)
- && !DECL_CLASS_TEMPLATE_P (val)))
+ && !DECL_TYPE_TEMPLATE_P (val)))
val = NULL_TREE;
break;
case TYPE_DECL:
OpenPOWER on IntegriCloud