<html>
    <head>
      <base href="https://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 --- - Can't find pure virtual function after r285954"
   href="https://llvm.org/bugs/show_bug.cgi?id=30937">30937</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't find pure virtual function after r285954
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dmajor@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat test.cpp
struct NormalizedConstraintSet
{
  struct BaseRange
  {
    virtual void FinalizeMerge() = 0;
  };

  struct StringRange : public BaseRange
  {
    void FinalizeMerge() override {}
  };

  NormalizedConstraintSet();
};

NormalizedConstraintSet::NormalizedConstraintSet()
{
  typedef BaseRange NormalizedConstraintSet::* MemberPtrType;
  MemberPtrType list[42];

  for (auto& memberPtr : list) {
    (this->*memberPtr).FinalizeMerge();
  }
}

int main()
{
  return 0;
}

$ clang-cl test.cpp
test-24ac86.obj : error LNK2019: unresolved external symbol "public: virtual
void __cdecl NormalizedConstraintSet::BaseRange::FinalizeMerge(void)"
(?FinalizeMerge@BaseRange@NormalizedConstraintSet@@UEAAXXZ) referenced in
function "public: __cdecl
NormalizedConstraintSet::NormalizedConstraintSet(void)"
(??0NormalizedConstraintSet@@QEAA@XZ)
test.exe : fatal error LNK1120: 1 unresolved externals
clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see
invocation)

(This test.cpp was reduced from the Firefox codebase. For real-world usage
please see <a href="https://dxr.mozilla.org/mozilla-central/search?q=FinalizeMerge">https://dxr.mozilla.org/mozilla-central/search?q=FinalizeMerge</a>)</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>