Bugzilla – Bug 316115
[GMCS] Can't compile typeof (void*)
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@freemail.hu 2004-09-25 16:55:47 MST ---- gmcs has problems compiling the following code: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; public class Tests { public unsafe static void Main () { Console.WriteLine (typeof (void*).Name); Console.WriteLine (typeof (void**).Name); } } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< gmcs --unsafe bug.cs reports: ALPHA SOFTWARE: Mono C# Compiler 1.1.1.0 for Generics syntax error, got token `STAR', expecting CLOSE_PARENS bug.cs(6) error CS1002: Expecting `;' syntax error, got token `STAR', expecting CLOSE_PARENS bug.cs(7) error CS1002: Expecting `;' Compilation failed: 2 error(s), 0 warnings while mcs works fine. ---- Additional Comments From martin@ximian.com 2004-12-08 16:23:20 MST ---- Fixed. Unknown operating system unknown. Setting to default OS "Other".