зеркало из https://github.com/mono/mail-archives.git
121 строка
4.9 KiB
HTML
121 строка
4.9 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> [Mono-bugs] [Bug 75156][Nor] New - [GMCS] miscompiles 'is' statement
|
||
|
</TITLE>
|
||
|
<LINK REL="Index" HREF="index.html" >
|
||
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075156%5D%5BNor%5D%20New%20-%20%5BGMCS%5D%20miscompiles%20%27is%27%20statement&In-Reply-To=bug-75156%40chernobyl.ximian.com">
|
||
|
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
||
|
<LINK REL="Previous" HREF="030029.html">
|
||
|
<LINK REL="Next" HREF="030031.html">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
<H1>[Mono-bugs] [Bug 75156][Nor] New - [GMCS] miscompiles 'is' statement</H1>
|
||
|
<B>bugzilla-daemon at bugzilla.ximian.com</B>
|
||
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075156%5D%5BNor%5D%20New%20-%20%5BGMCS%5D%20miscompiles%20%27is%27%20statement&In-Reply-To=bug-75156%40chernobyl.ximian.com"
|
||
|
TITLE="[Mono-bugs] [Bug 75156][Nor] New - [GMCS] miscompiles 'is' statement">bugzilla-daemon at bugzilla.ximian.com
|
||
|
</A><BR>
|
||
|
<I>Sat Jun 4 13:21:20 EDT 2005</I>
|
||
|
<P><UL>
|
||
|
<LI>Previous message: <A HREF="030029.html">[Mono-bugs] [Bug 75153][Wis] Changed - ikvm-classpath compile error
|
||
|
</A></li>
|
||
|
<LI>Next message: <A HREF="030031.html">[Mono-bugs] [Bug 75153][Wis] Changed - ikvm-classpath compile error
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#30030">[ date ]</a>
|
||
|
<a href="thread.html#30030">[ thread ]</a>
|
||
|
<a href="subject.html#30030">[ subject ]</a>
|
||
|
<a href="author.html#30030">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
<HR>
|
||
|
<!--beginarticle-->
|
||
|
<PRE>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 HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vargaz at gmail.com.</A>
|
||
|
|
||
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75156">http://bugzilla.ximian.com/show_bug.cgi?id=75156</A>
|
||
|
|
||
|
--- shadow/75156 2005-06-04 13:21:20.000000000 -0400
|
||
|
+++ shadow/75156.tmp.6203 2005-06-04 13:21:20.000000000 -0400
|
||
|
@@ -0,0 +1,54 @@
|
||
|
+Bug#: 75156
|
||
|
+Product: Mono: Compilers
|
||
|
+Version: unspecified
|
||
|
+OS:
|
||
|
+OS Details:
|
||
|
+Status: NEW
|
||
|
+Resolution:
|
||
|
+Severity:
|
||
|
+Priority: Normal
|
||
|
+Component: C#
|
||
|
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
||
|
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vargaz at gmail.com</A>
|
||
|
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
||
|
+TargetMilestone: ---
|
||
|
+URL:
|
||
|
+Cc:
|
||
|
+Summary: [GMCS] miscompiles 'is' statement
|
||
|
+
|
||
|
+Testcase:
|
||
|
+
|
||
|
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
+using System;
|
||
|
+using System.Reflection;
|
||
|
+
|
||
|
+public class Tests {
|
||
|
+
|
||
|
+ public void GetName (MethodBase method, out object retType) {
|
||
|
+ retType = method is ConstructorInfo ? new Object () : new Object ();
|
||
|
+ }
|
||
|
+
|
||
|
+ public static void Main () {
|
||
|
+ object o;
|
||
|
+ new Tests ().GetName (typeof (Tests).GetMethod ("Main"), out o);
|
||
|
+ }
|
||
|
+}
|
||
|
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
+
|
||
|
+When compiling this with gmcs, it prints:
|
||
|
+
|
||
|
+uj.cs(7) warning CS0184: The given expression is never of the provided
|
||
|
+('System.Nullable`1') type
|
||
|
+
|
||
|
+also, the generated IL looks doesn't contain an isinst instruction at all:
|
||
|
+
|
||
|
+ .maxstack 8
|
||
|
+ IL_0000: ldarg.2
|
||
|
+ IL_0001: br IL_0010
|
||
|
+
|
||
|
+ IL_0006: newobj instance void object::.ctor()
|
||
|
+ IL_000b: br IL_0015
|
||
|
+
|
||
|
+ IL_0010: newobj instance void object::.ctor()
|
||
|
+ IL_0015: stind.ref
|
||
|
+ IL_0016: ret
|
||
|
</PRE>
|
||
|
|
||
|
|
||
|
<!--endarticle-->
|
||
|
<HR>
|
||
|
<P><UL>
|
||
|
<!--threads-->
|
||
|
<LI>Previous message: <A HREF="030029.html">[Mono-bugs] [Bug 75153][Wis] Changed - ikvm-classpath compile error
|
||
|
</A></li>
|
||
|
<LI>Next message: <A HREF="030031.html">[Mono-bugs] [Bug 75153][Wis] Changed - ikvm-classpath compile error
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#30030">[ date ]</a>
|
||
|
<a href="thread.html#30030">[ thread ]</a>
|
||
|
<a href="subject.html#30030">[ subject ]</a>
|
||
|
<a href="author.html#30030">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
|
||
|
<hr>
|
||
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
||
|
mailing list</a><br>
|
||
|
</body></html>
|