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