| 1 |
// PR c++/67898 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<class T, T V, class = decltype(V)> struct A; |
| 5 |
template<class U> using B = A<U, 0>; |
| 6 |
|
| 7 |
using type = A<bool, 0>; |
| 8 |
using type = B<bool>; // incorrectly resolves to A<bool, 0, int> |
| 9 |
// instead of A<bool, 0, bool> |