<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 --- - "PHI node entries do not match predecessors" (fatal error: error in backend), having an array as data member"
   href="https://llvm.org/bugs/show_bug.cgi?id=23518">23518</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"PHI node entries do not match predecessors" (fatal error: error in backend), having an array as data member
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.4
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>niels_dekker_address_until_2018@xs4all.nl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Installed
<a href="http://llvm.org/pre-releases/win-snapshots/LLVM-3.7.0-r237002-win32.exe">http://llvm.org/pre-releases/win-snapshots/LLVM-3.7.0-r237002-win32.exe</a> on
Windows 7 x64. Tried to compile the following:

    //////////////////////////////
    // FooBar.cpp by Niels Dekker

    struct Foo
    {
        Foo() {}
        ~Foo() {}
    };

    struct Bar
    {
        Foo myArray[42];
        Bar();
    };

    Bar::Bar() {}

    int main() {}

    //////////////////////////////

Command line:

C:\Users\NielsDekker>"C:\\Program Files (x86)\\LLVM\\msbuild-bin\\CL.exe" -cc1
-triple i686-pc-windows-msvc -emit-obj -fexceptions FooBar.cpp

Compiler output:

PHI node entries do not match predecessors!
  %arraydestroy.elementPast = phi %struct.Foo* [ %arrayctor.cur.reload7,
%arraydestroy.done2.split ], [ %arraydestroy.element, %arraydestroy.body ]
label %arraydestroy.done2.split
label %entry
fatal error: error in backend: Broken function found, compilation aborted!</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>