[Mono-bugs] [Bug 63202][Maj] Changed - Indexer + Increment results in invalid opcode or compiler crash
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 2 Nov 2004 10:54:33 -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 priewasser@gmx.at.
http://bugzilla.ximian.com/show_bug.cgi?id=63202
--- shadow/63202 2004-08-17 04:59:47.000000000 -0400
+++ shadow/63202.tmp.16830 2004-11-02 10:54:33.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 63202
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Major
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: juraj@hotfeet.ch
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -76,6 +76,27 @@
------- Additional Comments From juraj@hotfeet.ch 2004-08-17 04:59 -------
Created an attachment (id=9131)
test case (ii): inctest2.cs
+
+------- Additional Comments From priewasser@gmx.at 2004-11-02 10:54 -------
+Same thing with properties and any other type
+(it seems that the compiler doesn't check if ++ or -- is defined for
+the type of a property)
+
+public class C{
+ public static bool Foo{
+ get{
+ return false;
+ }
+ set{
+ }
+ }
+ public static void Main(){
+ Foo++;
+ }
+}
+
+-> results in a runtime error (invalid IL code) instead of a compile
+time error