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

namespace N {
template <typename, typename> struct S {
  template <typename T, typename U> S(T, U);
};
} // namespace N
template <int> struct E {
  template <typename T> struct G { T t; };
  void fn() { G{N::S<char, int>{'a', 1}}; }
};

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