aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/typename9.C
blob: d619b583fc42b9f1c2148173543951edeade5d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
// { dg-options "-w" }
// Test to make sure that implicit typename doesn't break name binding rules.

typedef double A;
template<class T> class B {
  typedef char A;
};
template<class T> struct X : B<T> {
  A a;
};

int main()
{
  X<char*> x;
  return sizeof (x.a) != sizeof (double);
}