summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem17.C
blob: 5c5ee3fc30e13772a4c351e4adb1eb7d3394501c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/28346

template<int> struct A
{
  int& i;
  A();
  ~A() { &A::i; } // { dg-error "reference" }
};

A<0> a;