[Mono-bugs] [Bug 75320][Maj] Changed - [GMCS] references to static generic fields are compiled to unverifiable code

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 21 06:47:46 EDT 2005


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 at omega.pl.

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

--- shadow/75320	2005-06-21 06:13:54.000000000 -0400
+++ shadow/75320.tmp.29478	2005-06-21 06:47:46.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 75320
 Product: Mono: Compilers
 Version: 1.0
 OS: unknown
 OS Details: mono svn 17.06.2005
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Major
 Component: C#
 AssignedTo: martin at ximian.com                            
 ReportedBy: nazgul at omega.pl               
 QAContact: mono-bugs at ximian.com
@@ -92,6 +92,25 @@
 
 ------- Additional Comments From martin at ximian.com  2005-06-21 06:12 -------
 *** Bug 75312 has been marked as a duplicate of this bug. ***
 
 ------- Additional Comments From martin at ximian.com  2005-06-21 06:13 -------
 *** Bug 75313 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From nazgul at omega.pl  2005-06-21 06:47 -------
+I don't think this bug is solved. It seems to be a S.R.E or runtime
+issue. With 46295 gmcs still produces:
+
+        IL_0000:  ldsfld  class [tlib]'A`1'<int32> class
+[tlib]'A`1'<int32>::_N_constant_object
+        IL_0005:  stloc.0
+        IL_0006:  ldsfld  class 'B`1'<!0> class
+'B`1'<int32>::_N_constant_object
+
+(monodis also shows that)
+
+This is a general problem.
+I debugged a little and it seems that between class_init and
+ves_icall_Type_GetFields_internal the generic class' fields are being
+inflated - at the end of class_init the return type of
+_N_constant_object is A`1[T] and in mono_field_get_object it is
+A`1[int]. It happens only for externally loaded generic classes.


More information about the mono-bugs mailing list