[Mono-bugs] [Bug 58523][Wis] New - mono ilasm refuse to accept wchar
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 May 2004 15:47:01 -0400 (EDT)
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 s001@hotbox.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=58523
--- shadow/58523 2004-05-14 15:47:01.000000000 -0400
+++ shadow/58523.tmp.9958 2004-05-14 15:47:01.000000000 -0400
@@ -0,0 +1,77 @@
+Bug#: 58523
+Product: Mono: Compilers
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: x86 linux 2.6.5
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: s001@hotbox.ru
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono ilasm refuse to accept wchar
+
+Description of Problem:
+ mono ilasm refuse to accept wchar (mono 1 beta)
+
+Steps to reproduce the problem:
+ Use this example:
+--------------------------------------------
+.assembly extern RTS {}
+.assembly 'Hello' {}
+
+.namespace Hello
+{
+.class public sealed Hello
+ {
+.method public specialname rtspecialname static void .cctor() il managed
+ {
+ ret
+ .locals()
+ }
+.method public static void '.CPmain'(string[]) il managed
+ {
+.entrypoint
+ ldarg.0
+ stsfld string[] [RTS]ProgArgs::argList
+.line 4 'Hello.cp'
+.line 4:22 'Hello.cp'
+ ldstr "Hello CP World\\n"
+ call wchar[] [RTS]CP_rts::strToChO(string)
+ call void [RTS]Console::'WriteString'(wchar[])
+ ret
+ .locals()
+ }
+ }
+}
+--------------------------------------------
+
+Actual Results:
+Assembling 'Hello.il' , no listing file, to exe --> 'Hello.exe'
+syntax error, got token `K_WCHAR', expecting BANG K_INSTANCE K_EXPLICIT
+K_DEFAULT K_VARARG K_UNMANAGED K_VALUE K_NATIVE K_VOID K_BOOL K_INT8
+K_INT16 K_INT32 K_INT64 K_FLOAT32 K_FLOAT64 K_UNSIGNED K_METHOD K_CLASS
+K_TYPEDREF K_CHAR K_VALUETYPE K_OBJECT K_STRING
+Error at: line (21) column (12)
+Mono.ILASM.yyParser.yyException: irrecoverable syntax error
+in <0x00d10> Mono.ILASM.ILParser:yyparse (Mono.ILASM.yyParser.yyInput)
+in <0x000cd> Mono.ILASM.ILParser:yyparse
+(Mono.ILASM.yyParser.yyInput,object)
+in <0x00248> DriverMain:ProcessFile (string)
+
+Error while compiling.
+
+
+Expected Results:
+ Successfull compile (MS ilasm compiles it fine)
+
+How often does this happen?
+ Always.
+
+Additional Information:
+ This is mono 1 beta.