1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/25503 template<int N> struct Test { Test() { typedef struct StaticAssert {unsigned condition : (N); } XXX; // { dg-error "zero width" } } }; int main() { Test<0> T; }