aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash19.C
blob: a28827f31ac80ced0e4cffb3bdaef2c98719ee3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/15165

struct S 
{ 
    template <class T> S(const T &e);
};
int operator *(const double, const S &); 
template <class T>
struct X { 
    enum { SIXTY_FOUR=64 }; 
    struct node {
      unsigned char *ptr[sizeof(T)*SIXTY_FOUR];
        void d() {}
    };
    node *head; 
};
template struct X<int>;