summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/pseudodtor4.C
blob: 40178bf489d902d9f16eb733742af4f706341dcc (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34068
// { dg-do compile }

template <typename> struct A
{
  typedef int X;
  A () { T (). ~X (); }	// { dg-error "there are no arguments to|fpermissive|was not declared in this scope" }
};

A <int> a;