2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / ptrmem17.C
blob5c5ee3fc30e13772a4c351e4adb1eb7d3394501c
1 // PR c++/28346
3 template<int> struct A
5   int& i;
6   A();
7   ~A() { &A::i; } // { dg-error "reference" }
8 };
10 A<0> a;