1 // { dg-do compile { target c++11 } } 2 3 template <class T> foo()4 int foo () { return 1; } 5 6 struct B { 7 unsigned c: foo; // { dg-error "non-integral type" } 8 }; 9