PR c++/53858
* name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P.
From-SVN: r189331
+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
/* 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:
+2012-07-06 Jason Merrill <jason@redhat.com>
+
+ PR c++/53858
+ * g++.dg/cpp0x/alias-decl-20.C: New.
+
2012-07-06 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/51879
--- /dev/null
+// PR c++/53858
+// { dg-do compile { target c++11 } }
+
+template <typename T> struct s0 { typedef T tdef0; };
+template <typename T> struct s1 { typedef T tdef1; };
+template <typename T> using us1 = typename s1<T>::tdef1;
+template <typename T, typename TT = typename us1<T>::tdef0> struct s2 {};
+
+int main () { return 0; }