2003-07-01 Giovanni Bajo <giovannibajo@libero.it>
PR c++/8046
* g++.dg/other/error7.C: New test.
From-SVN: r68776
+2003-07-01 Giovanni Bajo <giovannibajo@libero.it>
+
+ PR c++/8046
+ * g++.dg/other/error7.C: New test.
+
2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
* g++.old-deja/g++.abi/vbase1.C: Fix comment typos.
--- /dev/null
+// { dg-do compile }
+// Origin: <andrewp at andypo dot net>
+// c++/8046: ICE on illegal code involving destructor being treated as bit-not
+// expression
+
+class A;
+namespace N {}
+
+void foo(void)
+{
+ N::~A(); // { dg-error "not a member" }
+}