[Mono-bugs] [Bug 31815][Nor] New - mcs crashes on this example with "params"

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Oct 2002 04:05:58 -0000

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 a.guru@sympatico.ca.


--- shadow/31815	Sun Oct  6 00:05:58 2002
+++ shadow/31815.tmp.10774	Sun Oct  6 00:05:58 2002
@@ -0,0 +1,61 @@
+Bug#: 31815
+Product: Mono/MCS
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: a.guru@sympatico.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: mcs crashes on this example with "params"
+The source file is from some tutorial on C#.  Mono 0.15 had the same
+problem.  I will attach the file to the bug report.
+bash$ rpm -q mono mono-devel libgc libgc-devel
+bash$ uname -a
+Linux localhost.localdomain 2.4.19 #2 Mon Aug 26 15:01:53 EDT 2002 i686 unknown
+bash$ head -1 /etc/issue
+Red Hat Linux release 7.3 (Valhalla)
+bash$ mcs MethodParams.cs
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in <0x00058> 00 Mono.CSharp.FlowBranching:SetParameterAssigned (int,string)
+in <0x0007c> 00 Mono.CSharp.ParameterReference:SetFieldAssigned
+in <0x00074> 00 Mono.CSharp.FieldExpr:DoResolveLValue
+in <0x007a2> 00 Mono.CSharp.MemberAccess:DoResolve
+in <0x00019> 00 Mono.CSharp.MemberAccess:DoResolveLValue
+in <0x00026> 00 Mono.CSharp.Expression:ResolveLValue
+in <0x002aa> 00 Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
+in <0x00150> 00 Mono.CSharp.Expression:Resolve
+in <0x00019> 00 Mono.CSharp.StatementExpression:Resolve
+in <0x00118> 00 Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in <0x00100> 00 Mono.CSharp.EmitContext:EmitTopBlock
+in <0x005c5> 00 Mono.CSharp.MethodData:Emit
+in <0x0001f> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x0027b> 00 Mono.CSharp.TypeContainer:Emit ()
+in <0x004da> 00 Mono.CSharp.RootContext:EmitCode ()
+in <0x00732> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000b> 00 Mono.CSharp.Driver:Main (string[])