// PR c++/49229 // { dg-do compile { target c++11 } } extern void* enabler; template struct enable_if {}; template struct enable_if { typedef T type; }; template struct and_; template struct and_ : B1 {}; template struct is_same { static constexpr bool value = false; }; template struct is_same { static constexpr bool value = true; }; template struct S { template...>::value>::type*& = enabler // { dg-error "no type" } > S(U...){} }; S s(0); // { dg-error "no match" }