1// PR c++/24791
2
3template<int> struct A
4{
5    static int i;
6    A() { ++i; }
7};
8
9template<int> int A<0>::i(0);	// { dg-error "template" "error" }
10// { dg-message "note" "note" { target *-*-* } 9 }
11
12A<0> a;
13