[Mono-bugs] [Bug 351172] [Regression] Internal compiler error when compiling nemerle 0. 9.3 since mono 1.2.6

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 14 19:36:10 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=351172

User vargaz at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=351172#c7





--- Comment #7 from Zoltan Varga <vargaz at gmail.com>  2008-03-14 17:36:08 MST ---
The previous issue is now fixed, but a harder to fix issue remains:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                Type t = tb.MakeGenericType (typeof (int));
                Type arr = t.MakeArrayType ();

                FieldBuilder fb = tb.DefineField ("First", typeParams [0],
FieldAttributes.Public);

                Type created = tb.CreateType ();

                Console.WriteLine ("A: " + TypeBuilder.GetField
(tb.MakeGenericType (typeof (int)), fb2));
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

What happens here is that t.MakeArrayType () causes mono_class_init () to 
be called on the MonoClass representing 't'. This causes klass->field.count to
be set to 0 from gclass->field.count. This causes GetField () to fail.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list