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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to