gcc/testsuite/g++.dg/template/crash19.C
raw| 1 | // PR c++/15165 |
| 2 | |
| 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]; |
| 13 | void d() {} |
| 14 | }; |
| 15 | node *head; |
| 16 | }; |
| 17 | template struct X<int>; |