1// Author: Dodji Seketeli <dodji@redhat.com>
2// Origin: PR c++/26693
3// { dg-do compile }
4
5
6class Alpha
7{
8  typedef int X; // { dg-error "'typedef int Alpha::X' is private" }
9};
10
11template<int>
12class Beta
13{
14    typedef int Y; // { dg-error "'typedef int Beta<0>::Y' is private" }
15};
16
17template <int>
18int
19bar ()
20{
21  Beta<0>::Y i = 0;		// { dg-error "within this context" }
22  return Alpha::X ();		// { dg-error "within this context" }
23}
24
25int i = bar<0> ();
26