summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error33.C
blob: b6a2a8ae8200903d053e1f0b56eb4073af34cfc1 (plain)
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;