Commit 692bb58a by Mark Mitchell Committed by Mark Mitchell

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

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

From-SVN: r63232
parent a8d0ddaf
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.
......
class Foo;
void
bar(void* p)
{
static_cast<Foo*>(p)->~Foo(); // { dg-error "" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment