[Mono-bugs] [Bug 76980][Nor] New - ilasm fails to assembly classes
containing fields with the same name
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Dec 13 12:41:05 EST 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 sasham at univ.kiev.ua.
http://bugzilla.ximian.com/show_bug.cgi?id=76980
--- shadow/76980 2005-12-13 12:41:05.000000000 -0500
+++ shadow/76980.tmp.1034 2005-12-13 12:41:05.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 76980
+Product: Mono: Compilers
+Version: 1.1
+OS: unknown
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: IL assembler
+AssignedTo: jankit at novell.com
+ReportedBy: sasham at univ.kiev.ua
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ilasm fails to assembly classes containing fields with the same name
+
+Description of Problem:
+ilasm fails to assembly classes containing fields with different types but
+the same name
+
+Steps to reproduce the problem:
+run "ilasm test.il"
+
+Actual Results:
+[
+Assembling 'test.il' , no listing file, to exe --> 'test.exe'
+
+Error at: line (21) column (12)
+
+Unhandled Exception: System.ArgumentException: Key duplication when adding:
+_1
+in <0x001f2> System.Collections.Hashtable:PutImpl (System.Object key,
+System.Object value, Boolean overwrite)
+in <0x00012> System.Collections.Hashtable:Add (System.Object key, System.
+Object value)
+in <0x0008c> Mono.ILASM.TypeDef:AddFieldDef (Mono.ILASM.FieldDef fielddef)
+in <0x0003a> Mono.ILASM.CodeGen:AddFieldDef (Mono.ILASM.FieldDef fielddef)
+in <0x04b7c> Mono.ILASM.ILParser:yyparse (yyInput yyLex)
+in <0x0008c> Mono.ILASM.ILParser:yyparse (yyInput yyLex, System.Object yyd)
+in <0x001eb> Mono.ILASM.Driver+DriverMain:ProcessFile (System.String
+file_path)
+]
+
+Expected Results:
+[
+Assembling 'test.il' , no listing file, to exe --> 'test.exe'
+
+Operation completed successfully
+]
+and we have a "test.exe"
+
+How often does this happen?
+always
+
+Additional Information:
+[
+Mono ILasm compiler version 1.1.10.0
+]
+
+I changed some sources to make my ilasm compile such input
+in the same way as method name duplications are resolved - field's
+Signature
+see attached .cs files in "ilasm.tar.bz2",
+i also included my ilasm.exe whith can assembly that "test.il"
More information about the mono-bugs
mailing list