PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef28.C
bloba0bad1bb9396381d03e415a5eff315a890ac100e
1 // Origin: PR c++/42820
2 // { dg-do compile }
5 template <class T> struct vector{};
6 struct Traits{struct Primitive{struct Id{};};};
8 template <class Tree, class Polyhedron> struct Tree_vs_naive
10   typedef typename Tree::Primitive Primitive;
12   void f() const
13   {
14           typedef vector<typename Primitive::Id> Id_vector;
15   }
18 template <class Tree> void test_hint_strategies()
20   vector<typename Tree::Primitive::Id> v;
23 int main(void)
25   test_hint_strategies<Traits>();