[Mono-dev] gmcs bug with unsafe code
Federico Di Gregorio
fog at initd.org
Thu Aug 28 03:38:02 EDT 2008
Il giorno gio, 28/08/2008 alle 04.52 +0300, Dan Shechter ha scritto:
> Hi,
>
> I’ve been trying out gmcs, running on Ubuntu 8.04 amd64 and have
> discovered a rather annoying fault:
>
>
>
> When compiling classes containing statements such as:
>
>
>
> namespace YYY {
>
> class XXX {
> private unsafe byte *_data;
>
> public unsafe byte *GetData() { return _data; }}
>
> }
>
> }
>
>
>
> The compiler will notify of a failure:
>
> error CS3003: Type of `YYY.XXX._data' is not CLS-compliant
With mono 1.9.1, passing the -unsafe switch to the compiler it works
here (after fixing the extra brace).
federico
--
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer fog at debian.org
INIT.D Developer fog at initd.org
The number of the beast: vi vi vi. -- Delexa Jones
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080828/7afd46d7/attachment.bin
More information about the Mono-devel-list
mailing list