<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 - MS ABI: debug information crashes on diamond inheritance"
   href="https://bugs.llvm.org/show_bug.cgi?id=33711">33711</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MS ABI:  debug information crashes on diamond inheritance
          </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>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>steinar+llvm@gunderson.no
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin


Reduced test case (after a 24-hour rather painful reduction!):

struct a {
  char *b;
  size_t c;
};
class d {
public:
  virtual ~d();
};
class e {
  int f();
  a g();
};
class h {
protected:
  h();
  virtual ~h();
};
class i : virtual d, h {
public:
  ~i();
};
class j : i, d {
public:
  j(e *, char *, size_t) {}
};
int e::f() { j(this, g().b, g().c); }

clang-cl /c /Z7 /EHsc -m64 -fmsc-version=1900 test.cc
test.cc(22,14):  warning: direct base 'd' is inaccessible due to ambiguity:
    class j -> class i -> class d
    class j -> class d [-Winaccessible-base]
class j : i, d {
             ^
test.cc(26,37):  warning: control reaches end of non-void function
[-Wreturn-type]
int e::f() { j(this, g().b, g().c); }
                                    ^
inlinable function call in a function with debug info must have a !dbg location
  call void @"\01??_Di@@UEAA@XZ"(%class.i* %this1) #7
fatal error: error in backend: Broken function found, compilation aborted!
clang-cl.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-cl.exe: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl.exe: note: diagnostic msg: C:\cygwin\tmp\test-3b01e5.cpp
clang-cl.exe: note: diagnostic msg: C:\cygwin\tmp\test-3b01e5.sh
clang-cl.exe: note: diagnostic msg: 

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