testcase for AOT - thrown exception is:

Error: SharpOS.AOT.IR.EngineException: The PHI operands have not the
same index. (SharpOS.Kernel.Tests.CS.Misc.CMP5())

That's the smallest piece of code I could produce - bug appears with
calls like: type.field.function(object.field?...:...)
Index: Kernel/Tests/CS/Misc.cs
===================================================================
--- Kernel/Tests/CS/Misc.cs	(wersja 870)
+++ Kernel/Tests/CS/Misc.cs	(kopia robocza)
@@ -155,5 +155,21 @@
 
 			return 0;
 		}
+
+		// bug regression test - PHI operants index problem
+		private class B {
+			public bool x;
+			public void c5test(int i) {}
+		}
+		private class C {
+			public static B b;
+		}
+		public static uint CMP5 ()
+		{
+			B b = new B();
+			C.b = b;
+			C.b.c5test(b.x?1:2);
+			return 1;
+		}
 	}
 }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to