// { dg-options "-std=c++0x" } template struct is_same { static const bool value = false; }; template struct is_same { static const bool value = true; }; template void f() { static_assert(is_same::value, "T can only be instantiated with an int"); } template void f(U) { static_assert(is_same::value, "T can only be instantiated with an int"); } void g() { float pi = 3.14159; f(); f(pi); }