[Clang] Variable template partial specialization cannot specialize primary template with auto NTTP (original) (raw)

Reproducer:

template constexpr bool b = false; template constexpr bool b = true;

Error:

<source>:2:33: error: variable template partial specialization does not specialize any template argument; to define the primary template, remove the template argument list
    2 | template <int I> constexpr bool b<I> = true;
      |                                 ^~~~

Possibly related: #42421.

See Compiler Explorer: https://godbolt.org/z/nEdbcKqWs