// RUN: %clang_cc1 -fsyntax-only -verify -std=c++26 %s namespace invalid_partial_spec { template struct integer_sequence {}; template struct array {}; template struct MetaValuesHelper; // expected-note {{template is declared here}} template struct MetaValuesHelper { // expected-error@-1 {{class template partial specialization is not more specialized than the primary template}} template static array(kValues)...> MetaValuesFunc(integer_sequence); // expected-note@-1 {{candidate template ignored: substitution failure [with Is = <0>]: use of undeclared identifier 'undefined'}} }; int kBaseIndexRegistersUsed; constexpr array<0> GenMachineInsnInfos() { return decltype(MetaValuesHelper<&kBaseIndexRegistersUsed>::MetaValuesFunc(integer_sequence<0>{})){}; // expected-error@-1 {{no matching function for call to 'MetaValuesFunc'}} } array<0> u = GenMachineInsnInfos(); } // namspace invalid_partial_spec