The following code fails to compile:
class Bug
{
unsafe int*[] data = new int*[16];
}
> csc /unsafe /target:library unsafe.cs
(works)
$ gmcs /unsafe /target:library unsafe.cs
unsafe.cs(3,33): error CS0214: Pointers and fixed size buffers may only be
used in an unsafe context
Compilation failed: 1 error(s), 0 warnings
$ mcs /unsafe /target:library unsafe.cs
unsafe.cs(3,33): error CS0214: Pointers and fixed size buffers may only be
used in an unsafe context
Compilation failed: 1 error(s), 0 warnings
$ mono --version
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Please confirm!
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list