2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wall" }
5 // We were getting a spurious ||/&& warning about the enable_if with the
6 // source position of d1.
10 { static const bool value = true; };
12 template<bool, typename Tp = void>
17 struct enable_if<true, Tp>
20 template<typename Rep>
25 template<typename Rep2, typename = typename
26 enable_if<false || (true && is_int<Rep2>::value)>::type>
27 duration(const duration<Rep2>&) { }
33 duration<int> d1 = d0; // { dg-warning "set but not used" }