language: C++ 4.7.2 (gcc-4.7.2)
date: 206 days 9 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
template <typename T>
class Foo {
public:
    static double const vals[];
    int run ();
};
 
template <typename T>
double const Foo<T>::vals[] = { 1, 2,3 };
 
template <typename T>
inline
int Foo<T>::run () {
    return sizeof(vals); // error C2070: 'const double []': illegal sizeof operand
}
 
int main() {}