2 // A version of alias-decl-75.C where the specializations of the
3 // complex alias template first_t are dependent.
4 // { dg-do compile { target c++11 } }
6 template<class T, class...>
16 struct traits<A<first_t<T, T&>>> {
17 static constexpr int value = 1;
21 struct traits<A<first_t<const T, T&>>> {
22 static constexpr int value = 2;
25 static_assert(traits<A<int>>::value == 1, "");
26 static_assert(traits<A<const int>>::value == 2, ""); // { dg-bogus "ambiguous" }