gcc/testsuite/g++.dg/parse/dtor3.C
raw| 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 { |
| 7 | ~Y() {} // { dg-bogus "note" "implemented DR272" } |
| 8 | }; |
| 9 | |
| 10 | struct X : Y { |
| 11 | ~X() {} // { dg-bogus "note" "implemented DR272" } |
| 12 | void f() { |
| 13 | X::~X(); // { dg-bogus "" "implemented DR272" } |
| 14 | Y::~Y(); // { dg-bogus "" "implemented DR272" } |
| 15 | } |
| 16 | }; |