Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction81.C

raw
1 // PR c++/97034
2 // { dg-do compile { target c++17 } }
3
4 template <typename Z>
5 struct E {
6 template <typename T>
7 struct G {
8 T t;
9 G(T) { }
10 };
11
12 void fn() { G{1}; }
13 };
14
15 void
16 g ()
17 {
18 E<int> e;
19 e.fn ();
20 }