// PR c++/28346 template struct A { int& i; A(); ~A() { &A::i; } // { dg-error "reference" } }; A<0> a;