PR c++/21908
* g++.dg/parse/error28.C: New test.
From-SVN: r105637
+2005-10-19 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/21908
+ * g++.dg/parse/error28.C: New test.
+
2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/profile-generate-2.c: New test.
--- /dev/null
+// PR c++/21908
+
+struct virt { virt () {} virt (int i) {} };
+struct der : public virtual virt { // { dg-error "der" }
+ der (int i) : virt(i) {} // { dg-error "der" }
+};
+struct top : public der {
+ // { dg-error "der\\(\\)" "" { target *-*-* } 9 }
+ top () {} // { dg-bogus "der\\(const" }
+};