[LLVMbugs] [Bug 20560] New: Valid C++ fails to compile when skipfunctionbodies is specified

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 6 03:01:31 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20560

            Bug ID: 20560
           Summary: Valid C++ fails to compile when skipfunctionbodies is
                    specified
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: schindler at virtamed.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12860
  --> http://llvm.org/bugs/attachment.cgi?id=12860&action=edit
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() { }
                     ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140806/80f3ea52/attachment.html>


More information about the llvm-bugs mailing list