view gcc/testsuite/g++.dg/parse/dtor3.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
line wrap: on
line source

// { 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 *-*-* } }  
  } 
};