PR c++/19299
* g++.dg/inherit/volatile1.C: New test.
PR c++/19440
* g++.dg/template/dtor4.C: New test.
From-SVN: r95292
+2005-02-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/19299
+ * g++.dg/inherit/volatile1.C: New test.
+
+ PR c++/19440
+ * g++.dg/template/dtor4.C: New test.
+
2005-02-19 Steven G. Kargl <kargls@comcast.net>
* gfortran.dg/int_1.f90: New test.
--- /dev/null
+// PR c++/19299
+// Origin: Andrew Pinski <pinskia@gcc.gnu.org>
+
+// { dg-do compile }
+
+struct V
+{
+ virtual void foo() = 0;
+};
+
+void bar(V volatile* p)
+{
+ p->V::~V();
+}
--- /dev/null
+// PR c++/19440
+// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+// { dg-do compile }
+
+template<int> struct A
+{
+ ~A<0>(); // { dg-error "declaration" }
+};