2005-10-13 Mark Mitchell <mark@codesourcery.com>
PR c++/23307
* pt.c (push_template_decl_real): Complain about attempts to
declare template variables.
* g++.dg/template/crash38.C: New test.
From-SVN: r108054
+2005-12-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2005-10-13 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/23307
+ * pt.c (push_template_decl_real): Complain about attempts to
+ declare template variables.
+
2005-11-30 Release Manager
* GCC 3.4.5 released.
return decl;
}
}
- else if ((DECL_IMPLICIT_TYPEDEF_P (decl)
- && CLASS_TYPE_P (TREE_TYPE (decl)))
- || (TREE_CODE (decl) == VAR_DECL && ctx && CLASS_TYPE_P (ctx)))
+ else if (DECL_IMPLICIT_TYPEDEF_P (decl)
+ && CLASS_TYPE_P (TREE_TYPE (decl)))
/* OK */;
else
{
+2005-12-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2005-10-13 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/23307
+ * g++.dg/template/crash38.C: New test.
+
2005-12-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.c-torture/execute/stdio-opt-1.c,
--- /dev/null
+// PR c++/23307
+
+class A
+{
+ template<class R>
+ static void f(X&); // { dg-error "" }
+ inline void A::f<void>(X&); // { dg-error "f|expected" }
+};