1// PR c++/28346 2 3template<int> struct A 4{ 5 int& i; 6 A(); 7 ~A() { &A::i; } // { dg-error "reference" } 8}; 9 10A<0> a; 11