[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
Sun Mar 9 20:14:45 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#c6


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |vargaz at gmail.com




--- Comment #6 from Zoltan Varga <vargaz at gmail.com>  2008-03-09 18:14:43 MST ---
So this is still broken with current mono SVN. The problem again seems to be
our broken handling of generic instantiations of typebuilders, when somebody
calls GetFields () on them, we make a copy of the current fields in the
typebuilder, and when fields are added later, these are not visible in the
instantiation. A testcase:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

                TypeBuilder tb = module.DefineType ("foo");
                GenericTypeParameterBuilder [] typeParams =
tb.DefineGenericParameters ("T");

                Console.WriteLine (tb.MakeGenericType (typeParams).GetFields
());

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

                Type t = tb.MakeGenericType (typeParams);

                Type created = tb.CreateType ();

                Console.WriteLine (TypeBuilder.GetField (t, fb));
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


-- 
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