1 template<typename T> 2 struct A 3 { 4 typedef T type(); 5 type i : 2; // { dg-error "8:cannot declare bit-field" } 6 }; 7