blob: f29ebd2c2b8412a3e670fde80105848a5afb3e83 [file] [log] [blame]
// PR c++/79501
// { dg-do compile { target c++17 } }
struct X {
protected:
template<class T>
struct B { T t; };
template<class T> B(T) -> B<T>;
};
struct Y {
protected:
template<class T>
struct B { T t; };
private:
template<class T> B(T) -> B<T>; // { dg-error "access" }
};