2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/28639
PR c++/30299
* g++.dg/template/void12.C: New.
* g++.dg/template/void13.C: New.
From-SVN: r129392
+2007-10-16 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/28639
+ PR c++/30299
+ * g++.dg/template/void12.C: New.
+ * g++.dg/template/void13.C: New.
+
2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/31446
--- /dev/null
+// PR c++/28639
+
+template<void> struct A // { dg-error "not a valid type" }
+{
+ static const int i = 1;
+ char a[i];
+};
--- /dev/null
+// PR c++/30299
+
+struct A
+{
+ int i;
+};
+
+template<void> struct B : A // { dg-error "not a valid type" }
+{
+ B() { this->i; }
+};