summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor3.C
blob: 3041ae4a568f9ee93e654a36a9a79b251a96c9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { 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 *-*-* } }  
  } 
};