<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 --- - unresolved external public: virtual __thiscall ... `vbase destructor'(void)""
   href="http://llvm.org/bugs/show_bug.cgi?id=17823">17823</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>unresolved external public: virtual __thiscall ... `vbase destructor'(void)"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>james.baker@bullochtech.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>In some circumstances I get linker errors starting sometime since Saturday
November 2.

LongField is a subclass of another class called Field.

Field has a virtual destructor, but LongField does not declare or define a
destructor.

Removing the virtual keyword from the parent class' destructor solves the
issue,

However, it compiled and linked on a version I build of clang/llvm on Saturday
as well as in Visual C++, and Embarcadero C++ with the destructor of the parent
class set as virtual. 

Here is a sample of the link output:


INPUT.LIB(field.obj) : error LNK2001: unresolved external symbol "public:
virtual __thiscall LongField::`vbase destructor'(void)" (??_DLongField@@UAE@XZ)</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>