[Mono-bugs] [Bug 78051][Nor] New - Syntax Error in "stfld object PB_LL::type"

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Apr 8 14:30:22 EDT 2006


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 webmaster at deeem2031.de.

http://bugzilla.ximian.com/show_bug.cgi?id=78051

--- shadow/78051	2006-04-08 14:30:22.000000000 -0400
+++ shadow/78051.tmp.16130	2006-04-08 14:30:22.000000000 -0400
@@ -0,0 +1,90 @@
+Bug#: 78051
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: XP Prof - SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: IL assembler
+AssignedTo: jankit at novell.com                            
+ReportedBy: webmaster at deeem2031.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Syntax Error in "stfld object PB_LL::type"
+
+Please fill in this template when reporting a bug, unless you know what you 
+are doing.
+Description of Problem:
+The IL-Assembler of mono generates a syntax-error message compiling a file 
+with "stfld object PB_LL::type" in it.
+
+Steps to reproduce the problem:
+1. Copy the code into a file:
+.assembly extern mscorlib { }
+.assembly extern System.Windows.Forms {.publickeytoken = (96 9D B8 05 3D 33 
+22 AC) .ver 1:0:5000:0 }
+.assembly PureBasic { }
+.module PureBasic.exe
+.subsystem 0x00000002
+
+.namespace PB {
+  .method public static void Exec() cil managed {
+    .entrypoint
+    .locals init (class PB_LL ll_list)
+    newobj instance void PB_LL::.ctor()
+    stloc ll_list
+    ldloc ll_list
+    newobj instance void PB_LL::.ctor()
+    stfld object PB_LL::type
+    ret
+  }
+}
+.class public sealed PB_LL extends [mscorlib]System.Object {
+  .method public hidebysig specialname rtspecialname instance void .ctor() 
+cil managed {
+    ldarg.0
+    call instance void [mscorlib]System.Object::.ctor()
+    ret
+  }
+  .field public class [mscorlib]System.Collections.ArrayList list
+  .field public int32 ce
+  .field public object type
+}
+
+
+
+2. Compile with the ilasm.exe
+
+Actual Results:
+
+Assembling 'C:\Purebasic full\Purebasic.Net\purebasic.il' , no listing 
+file, to
+exe --> 'C:\Purebasic full\Purebasic.Net\purebasic.exe'
+
+syntax error, got token `K_TYPE'
+Error at: line (17) column (29)
+
+Unhandled Exception: Mono.ILASM.yyParser.yyException: irrecoverable syntax 
+error
+
+in <0x00e33> 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:
+
+no syntax error
+
+How often does this happen? 
+
+everytime
+
+Additional Information:
+
+The ms il-assembler doesn't have any problem with that.


More information about the mono-bugs mailing list