[Mono-bugs] [Bug 75166][Wis] New - break statement not getting proper parent.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 6 19:17:47 EDT 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 cesar at ciencias.unam.mx.


--- shadow/75166	2005-06-06 19:17:47.000000000 -0400
+++ shadow/75166.tmp.6696	2005-06-06 19:17:47.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 75166
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: JScript
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: cesar at ciencias.unam.mx               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: break statement  not getting proper parent.
+Description of Problem:
+mjs is marking an error when a break statement appears inside another
+statement which is inside a for statement.
+Steps to reproduce the problem:
+Compile the attached test case.
+Actual Results:
+Unhandled Exception: System.Exception: A break statement can't be outside a
+switch or iteration stm
+in <0x00071> Microsoft.JScript.Break:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x001f8> Microsoft.JScript.If:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x0010a> Microsoft.JScript.For:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x003ab> Microsoft.JScript.Block:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x00011> Microsoft.JScript.ScriptBlock:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x0004d> Microsoft.JScript.SemanticAnalyser:Run
+(Microsoft.JScript.ScriptBlock prog)
+in <0x00205> Microsoft.Vsa.BaseVsaEngine:Compile ()
+in <0x00199> Driver:Main (System.String[] args)
+cesar at itaca:~/mono/mcs/jtests/regexp>
+Expected Results:
+Compilation succeeded.
+How often does this happen? 
+Additional Information:
+svn version fromMon Jun  6 18:10:38 CDT 2005

More information about the mono-bugs mailing list