[Mono-bugs] [Bug 42313][Wis] New - Nonsense accessor not caught

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 4 May 2003 17:16:16 -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 bstrauss-ximian@feliscatus.org.

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

--- shadow/42313	Sun May  4 17:16:16 2003
+++ shadow/42313.tmp.28225	Sun May  4 17:16:16 2003
@@ -0,0 +1,62 @@
+Bug#: 42313
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 8.0
+OS Details: mono-0.23-1 (rpm)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bstrauss-ximian@feliscatus.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Nonsense accessor not caught
+
+Description of Problem:
+
+A nonsense get accessor is not caught as a compiler error.
+
+
+Steps to reproduce the problem:
+1. Create test program
+
+using System;
+    public struct x {
+        protected byte p;
+        public x(byte i) { p=i; }
+        public byte P {
+                get { return P; }       
+        }
+    }
+
+class Sample {
+    public static void Main() {
+        x v = new x(3);
+        Console.WriteLine("\tP {0}", v.P );
+    }
+}
+
+2. Compile & Run
+
+Actual Results:
+
+Segmentation Fault
+
+Expected Results:
+
+Compiler error
+
+
+How often does this happen? 
+
+Every time.
+
+
+
+Additional Information:
+
+If you write the correct code, (return p), it works (naturally).