aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@libero.it>2003-07-01 17:39:04 +0200
committerWolfgang Bangerth <bangerth@gcc.gnu.org>2003-07-01 09:39:04 -0600
commita9d58f96c33b7264df18365a2ba2409ebf7a6757 (patch)
treebf90c05cd0a023be5ff566a914a1a265ced3e9a7 /gcc/testsuite
parent814ae570ea5766e19935e344d03709814bd002bd (diff)
downloadgcc-a9d58f96c33b7264df18365a2ba2409ebf7a6757.zip
gcc-a9d58f96c33b7264df18365a2ba2409ebf7a6757.tar.gz
gcc-a9d58f96c33b7264df18365a2ba2409ebf7a6757.tar.bz2
re PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not expression)
2003-07-01 Giovanni Bajo <giovannibajo@libero.it> PR c++/8046 * g++.dg/other/error7.C: New test. From-SVN: r68776
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/other/error7.C12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 271f461..95e4e01 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/testsuite/g++.dg/other/error7.C b/gcc/testsuite/g++.dg/other/error7.C
new file mode 100644
index 0000000..eadb7b5
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error7.C
@@ -0,0 +1,12 @@
+// { 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" }
+}