[LLVMbugs] [Bug 23518] New: "PHI node entries do not match predecessors" (fatal error: error in backend), having an array as data member

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 13 13:05:07 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23518

            Bug ID: 23518
           Summary: "PHI node entries do not match predecessors" (fatal
                    error: error in backend), having an array as data
                    member
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: niels_dekker_address_until_2018 at xs4all.nl
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Installed
http://llvm.org/pre-releases/win-snapshots/LLVM-3.7.0-r237002-win32.exe 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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150513/1abc2fd0/attachment.html>


More information about the llvm-bugs mailing list