<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Clang-cl: inlinable function call in a function with debug info must have a !dbg location"
   href="https://bugs.llvm.org/show_bug.cgi?id=32757">32757</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang-cl: inlinable function call in a function with debug info must have a !dbg location
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>enhancement
          </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>jvapen@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18333" name="attach_18333" title="Reproduction">attachment 18333</a> <a href="attachment.cgi?id=18333&action=edit" title="Reproduction">[details]</a></span>
Reproduction

When trying to compile our codebase with clang-cl, we noticed a fatal error by
the compiler:
inlinable function call in a function with debug info must have a !dbg location
  call void @"\01??_DB@@UEAA@XZ"(%struct.B* %this1)
fatal error: error in backend: Broken function found, compilation aborted!

This specific case combines __declspec(dllimport) and virtual inheritance.

For all details, please check the reproduction in the attachment.</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>