[Mono-bugs] [Bug 31910][Nor] Changed - crash when trying to compile class that has a property and method with same name
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
10 Oct 2002 05:14:29 -0000
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=31910
--- shadow/31910 Tue Oct 8 18:00:27 2002
+++ shadow/31910.tmp.15179 Thu Oct 10 01:14:29 2002
@@ -36,6 +36,15 @@
/** endsource **/
without access of Foo/Foo(5), it compiles fine with mcs. csc gives a "The
class 'Driver' already contains a definition for Foo" error. With just
"int i = Foo", an error is given in mcs, that Foo is referenced without
()'s. With both the i and j assignments, mcs segfaults. :)
+
+------- Additional Comments From miguel@ximian.com 2002-10-10 01:14 -------
+I noticed that on Mono we actually report the error, but fail to stop
+processing, this is what produces the crash. So that one is easy to fix.
+
+The hard bit to fix is the fact that on CSC the story is different,
+for some reason we do not catch this error, and eventually we try
+copying a PropertyInfo and a MethodInfo into a MethodInfo array which
+produces a different error.