[Mono-dev] Mono 1.2.6 / gmcs: compilation fails on unsafe array constructor.
Stephen Apostolopoulos
stapostol at gmail.com
Sun Jan 20 14:39:46 EST 2008
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!
More information about the Mono-devel-list
mailing list