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
This commit is contained in:
Giovanni Bajo 2003-07-01 17:39:04 +02:00 committed by Wolfgang Bangerth
parent 814ae570ea
commit a9d58f96c3
2 changed files with 17 additions and 0 deletions

View file

@ -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.

View file

@ -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" }
}