[Mono-bugs] [Bug 44219][Nor] New - --optimize=intrins brokes Qt#

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 5 Jun 2003 17:24:43 -0400 (EDT)


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 vargaz@freemail.hu.

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

--- shadow/44219	Thu Jun  5 17:24:42 2003
+++ shadow/44219.tmp.8982	Thu Jun  5 17:24:42 2003
@@ -0,0 +1,51 @@
+Bug#: 44219
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Potato
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: --optimize=intrins brokes Qt#
+
+Qt# does not work with current Mono CVS since intrins is in the default
+opts. 
+Here is a testcase:
+
+When running it, it never exits (it throws a NullPointerException, and 
+the exception handling code goes into an infinite loop). When running it
+with --optimize=-intrins, it runs.
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Runtime.InteropServices;
+
+internal struct QNull {
+	private static readonly QNull instance = new QNull (null);
+
+	private QNull (Object dummy) {}
+
+	internal static QNull Instance {
+		get {return instance;}
+	}
+}
+
+public class Proba {
+
+	internal Proba (QNull dummy) {
+	}
+
+	public static void Main (String[] args) {
+		new Proba (QNull.Instance);
+	}
+}
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<