<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 --- - [-cxx-abi microsoft] Complete destructors for class templates instantiated with objects from an anonymous namespace should be internal"
   href="http://llvm.org/bugs/show_bug.cgi?id=17273">17273</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[-cxx-abi microsoft] Complete destructors for class templates instantiated with objects from an anonymous namespace should be internal
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Here's an example from Chrome:

Undecoration of :-
"??_G?$BindState@V?$RunnableAdapter@P8PlatformAppPathLauncher@?A@apps@@AEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@internal@base@@$$A6AXPAVPlatformAppPathLauncher@?A@apps@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z$$A6AX0V67@@Z@internal@base@@UAEPAXI@Z"


is :- "public: virtual void * __thiscall base::internal::BindState<class
base::internal::RunnableAdapter<void (__thiscall apps::`anonymous
namespace'::PlatformAppPathLauncher::*)(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)>,void
__cdecl(class apps::`anonymous namespace'::PlatformAppPathLauncher *,class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
<span class="quote">> const &),void __cdecl(class apps::`anonymous</span >
namespace'::PlatformAppPathLauncher *,class basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::apps)>::`scalar deleting
destructor'(unsigned int)"


Basically this code I wrote is wrong:

llvm::GlobalValue::LinkageTypes
CodeGenModule::getFunctionLinkage(GlobalDecl GD) {
  const FunctionDecl *D = cast<FunctionDecl>(GD.getDecl());

  if (isa<CXXDestructorDecl>(D) &&
      getCXXABI().useThunkForDtorVariant(cast<CXXDestructorDecl>(D),
                                         GD.getDtorType()))
    return llvm::Function::LinkOnceODRLinkage;


As an aside, Microsoft leaves these instantiations external.  Instead they
invent unique names for anonymous namespaces.  This is a big source of COFF
symbol differences between clang and cl.exe.</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>