From a9d58f96c33b7264df18365a2ba2409ebf7a6757 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Tue, 1 Jul 2003 17:39:04 +0200 Subject: [PATCH] re PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not expression) 2003-07-01 Giovanni Bajo PR c++/8046 * g++.dg/other/error7.C: New test. From-SVN: r68776 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/other/error7.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/error7.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 271f4617730..95e4e01d48a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-07-01 Giovanni Bajo + + PR c++/8046 + * g++.dg/other/error7.C: New test. + 2003-07-01 Kazu Hirata * 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 00000000000..eadb7b5c52d --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error7.C @@ -0,0 +1,12 @@ +// { dg-do compile } +// Origin: +// 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" } +}