[Mono-bugs] [Bug 72148][Maj] Changed - Problem when trying to run C# Express 2005 beta code , pointer convertion
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Feb 2005 19:09:32 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by stef.mp@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72148
--- shadow/72148 2005-02-02 19:01:24.000000000 -0500
+++ shadow/72148.tmp.8141 2005-02-02 19:09:32.000000000 -0500
@@ -64,6 +64,42 @@
I'm using VC# 2005 Express Beta 1 as ide/compiler.
------- Additional Comments From vargaz@gmail.com 2005-02-02 19:01 -------
Please attach a self contained test case which demonstrates the
problem.
+
+------- Additional Comments From stef.mp@gmail.com 2005-02-02 19:09 -------
+Ok :) Here :
+Compiled under VC# 2005 express beta 1:
+runs fine under Microsoft's .net runtime
+The same error with above on mono runtime
+[Error : mini.c :line 7369 (mini_select_instructions) should not be
+reached , aborting. ;]
+Code :
+
+#region Using directives
+
+using System;
+using System.Text;
+
+#endregion
+
+namespace ConsoleApplication1
+{
+ class Program
+ {
+ static unsafe void Main(string[] args)
+ {
+ float[] fr = new float[15];
+ fr[0] = 1.13f;
+ fixed (float* p = &fr[0])
+ {
+ uint temp = *(uint*)p;
+ Console.WriteLine(temp);
+ Console.WriteLine(fr[0]);
+ }
+ }
+ }
+}
+
+I hope that all this helps :)