[Mono-bugs] [Bug 72852][Wis] New - mcs fails to lookup methods with `final virtual` modifiers
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Feb 2005 11:11:32 -0500 (EST)
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 nazgul@omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=72852
--- shadow/72852 2005-02-22 11:11:32.000000000 -0500
+++ shadow/72852.tmp.16925 2005-02-22 11:11:32.000000000 -0500
@@ -0,0 +1,98 @@
+Bug#: 72852
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: Mandrake 10.1, mono 1.1.4.20040221svn
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: nazgul@omega.pl
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs fails to lookup methods with `final virtual` modifiers
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+It simply ignores such method and screams that it cannot find proper
+overload for called method.
+
+Steps to reproduce the problem:
+1. Compile given IL by ilasm /dll lib.il
+
+.assembly extern mscorlib
+{
+ .ver 1:0:5000:0
+ .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
+}
+.assembly 'lib2'
+{
+ .hash algorithm 0x00008004
+ .ver 0:0:0:0
+}
+.module lib2 // GUID = {D8A046C2-CADF-447F-A84F-23BDF6CDFA85}
+
+
+.namespace Nemerle.Collections
+{
+ .class public auto ansi LinkedList
+ extends [mscorlib]System.Object
+ {
+
+ // method line 1
+ .method public hidebysig specialname rtspecialname
+ instance default void .ctor () cil managed
+ {
+ // Method begins at RVA 0x20ec
+ // Code size 7 (0x7)
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void class [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ } // end of method LinkedList::instance default void .ctor ()
+
+ // method line 2
+ .method public final virtual hidebysig
+ instance default void Add (object x) cil managed
+ {
+ // Method begins at RVA 0x20f4
+ // Code size 1 (0x1)
+ .maxstack 8
+ IL_0000: ret
+ } // end of method LinkedList::instance default void Add (object x)
+
+ } // end of class Nemerle.Collections.LinkedList
+}
+
+
+2. Try to compile given C# by mcs t.cs /r:lib.dll
+
+using Nemerle.Collections;
+
+class A {
+ static void Main () {
+ LinkedList x = new LinkedList ();
+ x.Add (5);
+ }
+
+}
+
+
+Actual Results:
+t.cs(7) error CS1501: No overload for method `Add' takes `1' arguments
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+Compilation succeeded
+
+How often does this happen?
+Always
+
+Additional Information:
+It works with mcs 1.1.4 and csc beta1