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