Bug 317806 (MONO74736) - [PATCH] ilasm emits duplicate TypeSpec and MemberRefs
Summary: [PATCH] ilasm emits duplicate TypeSpec and MemberRefs
Status: RESOLVED FIXED
Alias: MONO74736
Product: Mono: Compilers
Classification: Mono
Component: IL assembler (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Jackson Harper
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 19:19 UTC by Jain Ankit
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
test case (4.74 KB, text/plain)
2005-04-26 19:24 UTC, Thomas Wiest
Details
patch (9.96 KB, patch)
2005-04-26 19:24 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:14:59 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".