1 // { dg-do compile }
2 // Contributed by Wolfgang Bangerth <bangerth at dealii dot org>
3 // PR c++/12335: Make sure we don't ICE on the qualified-id form of a
4 //  destructor call.
5 
6 struct Y {
~YY7   ~Y() {}      // { dg-bogus "note" "implemented DR272" { xfail *-*-* } }
8 };
9 
10 struct X : Y {
~XX11   ~X() {}      // { dg-bogus "note" "implemented DR272" { xfail *-*-* } }
fX12   void f() {
13     X::~X();   // { dg-bogus "" "implemented DR272" { xfail *-*-* } }
14     Y::~Y();   // { dg-bogus "" "implemented DR272" { xfail *-*-* } }
15   }
16 };
17