PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / access4.C
blob9451ecc22bef3db43e60f3c1076076d37ff1e9cd
1 // { dg-do compile }
2 // Origin: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
4 // PR c++/7347
5 // Access control for typename during instantiation
7 template <int dim> class Base {
8   protected:
9     typedef int T;
12 template <int dim> class D : public Base<dim> {
13   public:
14     typedef typename Base<dim>::T T1;
15     D (T1 t);
18 D<2> d(1);