blob: 2b73a484735560b76bdf2809e6610def3256f455 [file] [log] [blame]
// PR c++/28346
template<int> struct A
{
int& i;
A();
~A() { &A::i; } // { dg-error "14:cannot create pointer to reference" }
};
A<0> a;