Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash19.C
blob59b4140c578b20b6031d5753b9dccdeae353e0d9
1 // PR c++/15165
3 struct S 
4
5     template <class T> S(const T &e);
6 };
7 int operator *(const double, const S &); 
8 template <class T>
9 struct X { 
10     enum { SIXTY_FOUR=64 }; 
11     struct node {
12       unsigned char *ptr[sizeof(T)*SIXTY_FOUR]; // { dg-error "" }
13         void d() {}
14     };
15     node *head; 
17 template struct X<int>;