Bug 323219 (MONO80531) - [GMCS] Returning generic delegates can incorrectly cause CS1503 errors
Summary: [GMCS] Returning generic delegates can incorrectly cause CS1503 errors
Status: RESOLVED FIXED
Alias: MONO80531
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 23:56 UTC by David Mitchell
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
This source file will trigger the reported bug (452 bytes, text/plain)
2007-01-16 23:57 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 20:23:09 UTC


---- Reported by dmitchell@logos.com 2007-01-16 16:56:54 MST ----

Description of Problem:
The attached file has two functions that take delegates and wrap them in 
new, anonymous delegates. The code compiles fine with Microsoft's C# 
compiler, but fails with the Mono C# compiler

Steps to reproduce the problem:
1. Download the attached source file
2. Attempt to compile it with the /target:library option

Actual Results:

With gmcs under Mono 1.2.2.1 - Both functions result in CS1503 errors. 
Note that, despite their extreme similarity, the text of the error in 
CS1503 is slightly different.

With gmcs under Microsoft's .NET 2.0: gmcs crashes with an unhandled 
System.NotSupportedException.

With csc: Compilation completes successfully


Expected Results:
Compilation should complete successfully

How often does this happen? 
Always



---- Additional Comments From dmitchell@logos.com 2007-01-16 16:57:50 MST ----

Created an attachment (id=171283)
This source file will trigger the reported bug




---- Additional Comments From rharinath@novell.com 2007-01-28 07:59:05 MST ----

Should be fixed in SVN r71805.

Imported an attachment (id=171283)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Also confirmed on Mac OS X</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".