[Mono-bugs] [Bug 38958][Wis] New - Compiler throws regular expression exception during compilation
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 2 Mar 2003 03:04:14 -0500 (EST)
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 duncan@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=38958
--- shadow/38958 Sun Mar 2 03:04:14 2003
+++ shadow/38958.tmp.5582 Sun Mar 2 03:04:14 2003
@@ -0,0 +1,67 @@
+Bug#: 38958
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: duncan@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Compiler throws regular expression exception during compilation
+
+I'm writing a little tool for testing out xpath expressions, when I tried
+to compile it, I get this error.
+
+
+
+mcs xpath.cs
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: xpath.cs: (63)
+ Block being compiled: [xpath.cs: (64),xpath.cs: (69)]
+
+Unhandled Exception: System.InvalidCastException: Cannot cast from source
+type to destination type
+in <0x00035> 00 System.Text.RegularExpressions.PatternCompiler:BeginLink
+(System.Text.RegularExpressions.LinkRef)
+in <0x00015> 00 System.Text.RegularExpressions.PatternCompiler:EmitAnchor
+(int,System.Text.RegularExpressions.LinkRef)
+in <0x000f1> 00
+System.Text.RegularExpressions.Syntax.RegularExpression:Compile
+(System.Text.RegularExpressions.ICompiler,bool)
+in <0x0012c> 00 System.Text.RegularExpressions.Regex:.ctor
+(string,System.Text.RegularExpressions.RegexOptions)
+in <0x00032> 00 System.Text.RegularExpressions.Regex:Replace
+(string,string,System.Text.RegularExpressions.MatchEvaluator,System.Text.RegularExpressions.RegexOptions)
+in <0x00064> 00 Mono.CSharp.TypeManager:CSharpName (System.Type)
+in <0x00052> 00 Mono.CSharp.Argument:FullDesc (Mono.CSharp.Argument)
+in <0x0028c> 00 Mono.CSharp.Invocation:VerifyArgumentsCompat
+(Mono.CSharp.EmitContext,System.Collections.ArrayList,int,System.Reflection.MethodBase,bool,System.Type,Mono.CSharp.Location)
+in <0x0035f> 00 Mono.CSharp.Invocation:OverloadResolve
+(Mono.CSharp.EmitContext,Mono.CSharp.MethodGroupExpr,System.Collections.ArrayList,Mono.CSharp.Location)
+in <0x00466> 00 Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext)
+in <0x00151> 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00144> 00 Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
+in <0x00151> 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x0001d> 00 Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext)
+in <0x0025e> 00 Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in <0x0010b> 00 Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in <0x00357> 00 Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in <0x0053a> 00 Mono.CSharp.MethodData:Emit
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
+in <0x00023> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x00297> 00 Mono.CSharp.TypeContainer:Emit ()
+in <0x004c8> 00 Mono.CSharp.RootContext:EmitCode ()
+in <0x0075d> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000f> 00 Mono.CSharp.Driver:Main (string[])