[LLVMbugs] [Bug 11227] New: exported templates not supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 24 20:29:46 PDT 2011


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

           Summary: exported templates not supported
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=7527)
 --> (http://llvm.org/bugs/attachment.cgi?id=7527)
myfirst3 from c++ templates book

Clang warns of this but I did not see a bug filed against this.


rkotler at ubuntu-rkotler:~/workspace/mips_test_code/cpp-templates/basics$
~/build_llvm/install/bin/clang++ myfirst3.cpp myfirst3main.cpp
In file included from myfirst3.cpp:12:
./myfirst3.hpp:15:1: warning: exported templates are unsupported
export
^
myfirst3.cpp:16:1: warning: exported templates are unsupported
export
^
myfirst3.cpp:18:1: error: unknown type name 'MyFirst'
MyFirst<T>::MyFirst()
^
myfirst3.cpp:18:8: error: expected unqualified-id
MyFirst<T>::MyFirst()
       ^

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list