Bug 319075 (MONO76198) - [GMCS]: Missing CS1547 for `void' as type argument
Summary: [GMCS]: Missing CS1547 for `void' as type argument
Status: RESOLVED FIXED
Alias: MONO76198
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 16:06 UTC by Jonathan Pryor
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
functor.cs (914 bytes, text/plain)
2005-09-23 16:08 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:31:46 UTC


---- Reported by jonpryor@vt.edu 2005-09-23 09:06:52 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

gmcs aborts compiling code that returns an anonymous delegate for a generic
method returning a generic delegate.

Steps to reproduce the problem:
1. Compile the attached program with gmcs: gmcs functor.cs
2. Watch the fireworks.

Actual Results:

jon@balthasar:tmp$ gmcs functor.cs
 
** ERROR **: file metadata.c: line 2758 (mono_type_size): assertion failed:
(!gclass->generic_class.inst->is_open)
aborting...
Aborted


Expected Results:

No mono runtime error.  At minimum a useful gmcs error (if the C# code
isn't valid, though it looks like it should be valid to me).

How often does this happen? 

Always.

Additional Information:

This can be worked around by doing the work that the anonymous delegate
should be doing for me.  See the mono-devel-list email for a workaround:

http://lists.ximian.com/pipermail/mono-devel-list/2005-September/014856.html



---- Additional Comments From jonpryor@vt.edu 2005-09-23 09:08:03 MST ----

Created an attachment (id=168540)
functor.cs




---- Additional Comments From martin@ximian.com 2005-10-04 06:16:26 MST ----

martin@mordor ~
$ csc B.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.7
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

B.cs(17,13): error CS1547: Keyword 'void' cannot be used in this context
B.cs(17,35): error CS1547: Keyword 'void' cannot be used in this context
B.cs(18,13): error CS1547: Keyword 'void' cannot be used in this context
B.cs(18,35): error CS1547: Keyword 'void' cannot be used in this context
B.cs(19,13): error CS1547: Keyword 'void' cannot be used in this context
B.cs(19,35): error CS1547: Keyword 'void' cannot be used in this context

martin@mordor ~




---- Additional Comments From martin@ximian.com 2005-12-08 12:46:33 MST ----

Fixed in SVN.

Imported an attachment (id=168540)

Unknown operating system other. Setting to default OS "Other".