Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / error33.C
blobb6a2a8ae8200903d053e1f0b56eb4073af34cfc1
1 // PR c++/24791
3 template<int> struct A
5     static int i;
6     A() { ++i; }
7 };
9 template<int> int A<0>::i(0);   // { dg-error "template" "error" }
10 // { dg-message "note" "note" { target *-*-* } 9 }
12 A<0> a;