1 // DR 1391
2 // { dg-do compile { target c++11 } }
3 
4 template<class T>
5 struct A {
6   typename T::N n;
7 };
8 
9 template<class T>
10 struct B { };
11 
12 template <class T, class... U>
13 typename A<T>::value_t bar(int, T, U...);
14 
15 template <class T>
16 T bar(T, T);
17 
baz()18 void baz()
19 {
20   B<char> b;
21   bar(b, b);
22 }
23