aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction81.C
blob: 86a682481575830aab602364d8c6ee235bdc4958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/97034
// { dg-do compile { target c++17 } }

template <typename Z>
struct E {
  template <typename T>
  struct G {
    T t;
    G(T) { }
  };

  void fn() { G{1}; }
};

void
g ()
{
  E<int> e;
  e.fn ();
}