Commit 90c2bc78 by Giovanni Bajo

re PR c++/12335 (ICE when explicitly calling destructor)

	PR c++/12335
	* g++.dg/parse/dtor3.C: New test.

From-SVN: r75843
parent fd6e3cce
2004-01-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12335
* g++.dg/parse/dtor3.C: New test.
2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/12709
......
// { dg-do compile }
// Contributed by Wolfgang Bangerth <bangerth at dealii dot org>
// PR c++/12335: Make sure we don't ICE on the qualified-id form of a
// destructor call.
struct Y {
~Y() {} // { dg-bogus "note" "implemented DR272" { xfail *-*-* } }
};
struct X : Y {
~X() {} // { dg-bogus "note" "implemented DR272" { xfail *-*-* } }
void f() {
X::~X(); // { dg-bogus "" "implemented DR272" { xfail *-*-* } }
Y::~Y(); // { dg-bogus "" "implemented DR272" { xfail *-*-* } }
}
};
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