// Author: Dodji Seketeli // Origin: PR c++/26693 // { dg-do compile } class Alpha { typedef int X; // { dg-error "'typedef int Alpha::X' is private" } }; template class Beta { typedef int Y; // { dg-error "'typedef int Beta<0>::Y' is private" } }; template int bar () { Beta<0>::Y i = 0; return Alpha::X (); } int i = bar<0> (); // { dg-error "within this context" }