<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang c++ incorrectly accepts template keyword on non-template definition"
   href="http://llvm.org/bugs/show_bug.cgi?id=8020">bug 8020</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sepavloff@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang c++ incorrectly accepts template keyword on non-template definition"
   href="http://llvm.org/bugs/show_bug.cgi?id=8020#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang c++ incorrectly accepts template keyword on non-template definition"
   href="http://llvm.org/bugs/show_bug.cgi?id=8020">bug 8020</a>
              from <span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span></b>
        <pre>Current version (190531) gives better message:

$ cat pr8020.cpp
template <typename T> struct X { X() {} };
template<> struct X<int> { X(); };
template X<int>::X() {}
$ clang pr8020.cpp 
pr8020.cpp:3:22: error: function cannot be defined in an explicit
instantiation; if this declaration is meant to be a function
      definition, remove the 'template' keyword
template X<int>::X() {}
                     ^
1 error generated.</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>