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

           Summary: Undefined symbol '__ZNSbIcED1Ev' when using extern
                    templates and -fvisibility-hidden
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Reduced testcase (this was a 500k file, hooray for delta):

$ cat file.pp.mm
namespace std {
  template<typename T> class basic_string {
    public:
      ~basic_string() {}
  };
  extern template class basic_string<char>;
}
std::basic_string<char> kEmptyString;

$ /Users/thakis/src/llvm/Release/bin/clang++ -fvisibility=hidden -c file.pp.mm
fatal error: error in backend: symbol '__ZNSbIcED1Ev' can not be undefined in a
subtraction expression

The message is written by llvm/lib/MC/MachObjectWriter.cpp

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to