blob: 6121bed7e8be64b5395476e8668deaa04cb268c4 [file] [log] [blame]
// { 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" }
};
struct X : Y {
~X() {} // { dg-bogus "note" "implemented DR272" }
void f() {
X::~X(); // { dg-bogus "" "implemented DR272" }
Y::~Y(); // { dg-bogus "" "implemented DR272" }
}
};