Bug 316115 (MONO66846) - [GMCS] Can't compile typeof (void*)
Summary: [GMCS] Can't compile typeof (void*)
Status: RESOLVED FIXED
Alias: MONO66846
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 23:55 UTC by Zoltan Varga
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:54:48 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".