summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash19.C
blob: 09e57d1d3124efc64c8597d3e76f3fd17f3049ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

template <int I>
void f()
{
  class C { public: int c; };

  struct S {
    void g() {
      C e;
      e.c = 3;
    }
  };

  S s;
  s.g();
}

template void f<7>();