Bugzilla – Bug 317806
[PATCH] ilasm emits duplicate TypeSpec and MemberRefs
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by radical@gmail.com 2005-04-26 12:19:37 MST ---- compiling the attached test case with our ilasm and.. ritvik@linux:~/ankit> monodis --typespec arr.exe Typespec Table 1: object 2: int32[] 3: int32 4: int32 [, ] # 5: int32 [, ] # 6: int32[] 7: int32 [, ] # And ritvik@linux:~/ankit> monodis --memberref arr.exe MemberRef Table (1..6) 1: TypeSpec[1] .ctor Resolved: object..ctor Signature: instance void() 2: TypeSpec[4] .ctor Resolved: int32 [, ]..ctor Signature: instance void(int32, int32) 3: TypeSpec[5] .ctor Resolved: int32 [, ]..ctor Signature: instance void(int32, int32) 4: TypeRef[6] InitializeArray Resolved: [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray Signature: void(class [mscorlib]System.Array, valuetype [mscorlib]System.RuntimeFieldHandle) 5: TypeSpec[1] .ctor Resolved: object..ctor Signature: instance void() 6: TypeSpec[7] .ctor Resolved: int32 [, ]..ctor Signature: instance void(int32, int32) ---------------------------------------------------------- After the patch: $ monodis --typespec arr.exe Typespec Table 1: object 2: int32[] 3: int32 4: int32 [, ] $ monodis --memberref arr.exe MemberRef Table (1..3) 1: TypeSpec[1] .ctor Resolved: object..ctor Signature: instance void() 2: TypeSpec[4] .ctor Resolved: int32 [, ]..ctor Signature: instance void(int32, int32) 3: TypeRef[6] InitializeArray Resolved: [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray Signature: void(class [mscorlib]System.Array, valuetype [mscorlib]System.RuntimeFieldHandle) ------------------------------- ---- Additional Comments From radical@gmail.com 2005-04-26 12:24:18 MST ---- Created an attachment (id=167811) test case ---- Additional Comments From radical@gmail.com 2005-04-26 12:24:43 MST ---- Created an attachment (id=167812) patch ---- Additional Comments From miguel@ximian.com 2005-04-26 16:44:08 MST ---- The patch looks good to me to commit. ---- Additional Comments From radical@gmail.com 2005-04-27 06:41:40 MST ---- Patch committed. Imported an attachment (id=167811) Imported an attachment (id=167812) Unknown operating system unknown. Setting to default OS "Other".