☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
class-deduction-aggr14.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr14.C
code
plain
raw
1
// PR c++/114974
2
// { dg-do compile { target c++20 } }
3
4
template<typename T1>
5
struct A {
6
template<typename T2>
7
struct B { T2 t; };
8
};
9
10
A<int>::B x{2}; // OK
11
A<int>::B y(2); // OK, previously rejected