(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1z/
class-deduction-access2.C
// { dg-do compile { target c++17 } }

struct B {
protected:
    struct type {};
};
template<typename T> struct D : B {
    D(T, typename T::type);
};
D c = {B(), {}};