aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/access26.C
blob: 1c5de9a8fd2c45edbc48b1ccd99f8926c611fe71 (plain)
1
2
3
4
5
6
// PR c++/45917

template < typename T >
struct A { static int i; };
class B { typedef int X; };	// { dg-error "private" }
void f() { A<B::X>::i = 0; }	// { dg-error "this context" }