// PR c++/24791 template struct A { static int i; A() { ++i; } }; template int A<0>::i(0); // { dg-error "template" "error" } // { dg-message "note" "note" { target *-*-* } 9 } A<0> a;