aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-07-06 10:00:31 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-07-06 10:00:31 -0400
commitd30a17fc577b895a3a7398a3ae8715e01e23d845 (patch)
treec553a4020a51f152abfc5f68f319f966a94907c1 /gcc/cp
parentf8b54112b5c8e1a8853df8b75cf945b16ff84fae (diff)
downloadgcc-d30a17fc577b895a3a7398a3ae8715e01e23d845.zip
gcc-d30a17fc577b895a3a7398a3ae8715e01e23d845.tar.gz
gcc-d30a17fc577b895a3a7398a3ae8715e01e23d845.tar.bz2
re PR c++/53858 ([C++11] template aliases used in template parameters default expression)
PR c++/53858 * name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P. From-SVN: r189331
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/name-lookup.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4d1fc5c..5801004 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-06 Jason Merrill <jason@redhat.com>
+
+ PR c++/53858
+ * name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P.
+
2012-07-05 Jason Merrill <jason@redhat.com>
PR c++/53039
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index cc8439c..97581d9 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: