1// PR c++/58047
2
3template <int N>
4struct print_arg { };
5
6struct const_holder {
7  static const int CONSTANT = 42;
8};
9
10template <typename T>
11struct identity {
12  typedef T type;
13};
14
15template <class T>
16struct test_case : public identity<T> {
17  using typename identity<T>::type;
18  print_arg<type::CONSTANT> printer;
19};
20
21template struct test_case<const_holder>;
22