3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // PR c++/10849: Incorrect access checking on template specialization.
9 template <typename T> struct Y;
12 template <> struct X::Y<int> {};
14 template <typename T> struct X::Y {};
16 template struct X::Y<int>;