<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Valid C++ fails to compile when skipfunctionbodies is specified"
   href="http://llvm.org/bugs/show_bug.cgi?id=20560">20560</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Valid C++ fails to compile when skipfunctionbodies is specified
          </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>Windows XP
          </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>schindler@virtamed.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12860" name="attach_12860" title="Testcase which fails to compile with SkipFunctionBodies">attachment 12860</a> <a href="attachment.cgi?id=12860&action=edit" title="Testcase which fails to compile with SkipFunctionBodies">[details]</a></span>
Testcase which fails to compile with SkipFunctionBodies

I'm writing a clang tool and I'd like to use the SkipFunctionBodies option for
simplicity as I only want to look at global variables and decalarations. 

The compile however fails with the following error: 

templatetest.cpp:14:26: error: explicit instantiation of undefined member
function 'TVector3' of class
      template 'VirtaMed::TVector3<float>'
template class VirtaMed::TVector3<float>;
                         ^
templatetest.cpp:11:15: note: explicit instantiation refers here
        TVector3<T>::TVector3() { }
                     ^</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>