// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s namespace ParameterPacksWithFunctions { template struct count; template struct count { static const unsigned value = 1 + count::value; }; template<> struct count<> { static const unsigned value = 0; }; template struct unsigned_c { }; template unsigned_c::value> f(); void test_f() { unsigned_c<0> uc0a = f(); // okay, deduced to an empty pack unsigned_c<0> uc0b = f<>(); unsigned_c<1> uc1 = f(); unsigned_c<2> uc2 = f(); } }