[Mono-bugs] [Bug 69819][Nor] New - segfault on method call

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Nov 2004 22:37:19 -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 dalton@stanfordalumni.org.

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

--- shadow/69819	2004-11-22 22:37:19.000000000 -0500
+++ shadow/69819.tmp.28166	2004-11-22 22:37:19.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 69819
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dalton@stanfordalumni.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: segfault on method call
+
+I get a segfault in mono 1.1.2 on FC2 when executing the following code :
+
+
+private void DoSomething(int i, long j)
+{
+    SomeMethod(i, new ArrayList().Add(j));
+}
+
+It compiles just fine and seems like valid C# to me.
+
+SomeMethod() takes an int and an ArrayList.
+
+Changing this to :
+
+private void DoSomething(int i, long j)
+{
+    ArrayList temp = new ArrayList();
+    temp.Add(j);
+    SomeMethod(i, temp);
+}
+
+works fine.