re PR c++/8724 (explicit destructor call for incomplete class allowed)

PR c++/8724
	* g++.dg/expr/dtor1.C: New test.

From-SVN: r63232
This commit is contained in:
Mark Mitchell 2003-02-21 18:08:14 +00:00 committed by Mark Mitchell
parent a8d0ddaf4c
commit 692bb58aae
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-02-21 Mark Mitchell <mark@codesourcery.com>
PR c++/8724
* g++.dg/expr/dtor1.C: New test.
2003-02-21 Zack Weinberg <zack@codesourcery.com>
* gcc.dg/cpp/include3.c: New test.

View file

@ -0,0 +1,7 @@
class Foo;
void
bar(void* p)
{
static_cast<Foo*>(p)->~Foo(); // { dg-error "" }
}