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:
parent
814ae570ea
commit
a9d58f96c3
2 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
12
gcc/testsuite/g++.dg/other/error7.C
Normal file
12
gcc/testsuite/g++.dg/other/error7.C
Normal 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" }
|
||||
}
|
Loading…
Add table
Reference in a new issue