PR c++/17068
* pt.c (dependent_template_p): Treat IDENTIFIER_NODEs as
dependent.
PR c++/17068
* g++.dg/template/operator4.C: New test.
From-SVN: r86199
+2004-08-18 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/17068
+ * pt.c (dependent_template_p): Treat IDENTIFIER_NODEs as
+ dependent.
+
2004-08-17 Mark Mitchell <mark@codesourcery.com>
PR c++/16246
if (DECL_TEMPLATE_TEMPLATE_PARM_P (tmpl)
|| TREE_CODE (tmpl) == TEMPLATE_TEMPLATE_PARM)
return true;
- /* So are qualified names that have not been looked up. */
- if (TREE_CODE (tmpl) == SCOPE_REF)
+ /* So arenames that have not been looked up. */
+ if (TREE_CODE (tmpl) == SCOPE_REF
+ || TREE_CODE (tmpl) == IDENTIFIER_NODE)
return true;
/* So are member templates of dependent classes. */
if (TYPE_P (CP_DECL_CONTEXT (tmpl)))
+2004-08-18 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/17068
+ * g++.dg/template/operator4.C: New test.
+
2004-08-18 Richard Henderson <rth@redhat.com>
* gcc.dg/20040206-1.c: XFAIL.
--- /dev/null
+// PR c++/17068
+
+struct A
+{
+ template<int> void operator()() {}
+};
+
+template<typename> void foo()
+{
+ A().template operator()<0>();
+}