<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - explicit specialization in class scope compiles instead of failing"
   href="https://bugs.llvm.org/show_bug.cgi?id=37346">37346</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>explicit specialization in class scope compiles instead of failing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rhalbersma@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>struct S 
{
    template<int N>
    constexpr static auto var = 0;

    template<>
    constexpr static auto var<0> = 1;
};

int main() 
{
    static_assert(S::var<0> == 1);
}

Fails to compile on clang 6.0 (as well as gcc 7.3 and 8.1) with "explicit
specialization of 'var' in class scope" but compiles with clang SVN-trunk (see
<a href="https://wandbox.org/permlink/6t2pfHx8CZkejsWh">https://wandbox.org/permlink/6t2pfHx8CZkejsWh</a>). 

Did the Standard change w.r.t. explicit specializations in class scope, or is
this a regression?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>