[Mono-bugs] [Bug 66846][Nor] New - [GMCS] Can't compile typeof (void*)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 25 Sep 2004 16:55:47 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=66846

--- shadow/66846	2004-09-25 16:55:47.000000000 -0400
+++ shadow/66846.tmp.14812	2004-09-25 16:55:47.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 66846
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Can't compile typeof (void*)
+
+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.