blob: 5814251f95e762057a06911173eed6ca67d70383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
struct S {
template <class T>
int f(T), g(T); // ERROR - more than one declarator
};
template <class T>
void x(T), y(T); // ERROR - more than one declarator
template <class T>
struct S2
{
static int i, j; // OK.
};
template <class T>
int S2<T>::i, S2<T>::j; // ERROR - more than one declarator
template <>
int S2<int>::i, S2<double>::i; // ERROR - more than one declarator
|