// PR c++/41927 // { dg-options "-std=c++0x -Wall" } // We were getting a spurious ||/&& warning about the enable_if with the // source position of d1. template struct is_int { static const bool value = true; }; template struct enable_if { }; template struct enable_if { typedef Tp type; }; template struct duration { duration() { } template::value)>::type> duration(const duration&) { } }; int main() { duration d0; duration d1 = d0; // { dg-warning "set but not used" } }