[Mono-list] Array of pointers failure in SVN HEAD.

Paolo Molaro lupus at ximian.com
Mon Aug 22 05:03:27 EDT 2005


On 08/16/05 Steven Kirk wrote:
> namespace ConsoleApplication1 {
>    class Program {
>        static unsafe void Main(string[] args) {
>            int[] i = new int[] { 10 };
>            fixed (int* p = i) {
>                int*[] q = new int*[] { p };
>                *q[0] = 5;
>                Console.WriteLine(*q[0]);
>            }
>        }
>    }
> }
> 
> However, it produces a NullReferenceException on Mono from SVN (at 
> wrapper stelemref).

This is a mcs bug, filed as
http://bugzilla.ximian.com/show_bug.cgi?id=75874.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list