1 // PR c++/51319
2 // { dg-do compile }
3 
4 template<int> struct X {};
5 
6 struct Base
7 {
8     enum { a = 1 };
9 };
10 
11 struct Der : Base
12 {
13     using Base::a;
14     typedef X<(int)a> Y;
15 };
16