summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/debug/localclass1.C
blob: 85adb3b19721e028d3c5af64fc5c21853da35fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/52637
// { dg-do compile { target c++11 } }
// { dg-options "-g" }

template <typename T>
struct C { };

template <typename V>
void f(V v) {
  struct B {};
  C<B> c;
}

template <typename T>
void g(T t) {
  struct A { } a;
  f (a);
}

struct D {
  void h() { g(0); }
};
OpenPOWER on IntegriCloud