[LLVMbugs] [Bug 10249] Missing functions in string.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 2 14:25:20 PDT 2011


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

jonathan.sauer at gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from jonathan.sauer at gmx.de 2011-07-02 16:25:20 CDT ---
Well, it seems that I compiled libc++ with an older version of clang, r133996
to be precise. That resulted in the following symbol in libc++.1.dylib (for
string::append(ForwardIterator, ForwardIterator)):

__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendIPcEENS_9enable_ifIXsrNS_21__is_forward_iteratorIT_EE5valueERS5_E4typeESA_SA_


Now, clang r134322 mangles this as (note the missing "NS" after "ifXsr" and the
differing suffix):

__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendIPcEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueERS5_E4typeES9_S9_


This, of course, resulted in a linker error. And I misread the explicit
instanciation of methods in string.cpp for declarations.

The reason for the change in name mangling seems to be revision 134227:
http://llvm.org/viewvc/llvm-project?view=rev&revision=134227

So, all-clear for libc++. I'm sorry for the noise, and I hope I did not cause
too much work for all involved!

-- 
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