aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr14.C
blob: de636eb84e0672527274423f8c83a0171b73ddb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/114974
// { dg-do compile { target c++20 } }

template<typename T1>
struct A {
  template<typename T2>
  struct B { T2 t; };
};

A<int>::B x{2}; // OK
A<int>::B y(2); // OK, previously rejected