[Mono-bugs] [Bug 76441][Nor] Changed - gmcs confused by new() constraint

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 19 13:16:19 EDT 2005


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 martin at ximian.com.

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

--- shadow/76441	2005-10-19 13:12:58.000000000 -0400
+++ shadow/76441.tmp.592	2005-10-19 13:16:19.000000000 -0400
@@ -224,6 +224,32 @@
     #29: 0x40427982 in
 Mono.CSharp.Driver.MainDriver(System.String[])+0x155a at
 /work/gondor/mono/mcs/gmcs/driver.cs:1603
     #30: 0x40017ed5 in Mono.CSharp.Driver.Main(System.String[])+0xa5
 at /work/gondor/mono/mcs/gmcs/driver.cs:287
 ======
+
+------- Additional Comments From martin at ximian.com  2005-10-19 13:16 -------
+Single-stepping through the Expression.MemberLookup on that line also
+revealed the problem:
+
+=====
+(mdb) frame
+#0: 0x404c5969 in
+Mono.CSharp.TypeContainer.FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,System.Object)+0x1129
+at /work/gondor/mono/mcs/gmcs/class.cs:2114
+2114                                            if (cb != null &&
+filter (cb, criteria) == true) {
+(mdb) p cb
+(System.Reflection.Emit.ConstructorBuilder) null
+(mdb) p c
+(Mono.CSharp.Constructor) {
+  ConstructorBuilder = null, Initializer = null,
+  declarative_security = null, has_compliant_args = false
+}
+====
+
+Constructor.Define() hasn't been called yet, so
+`cb.ConstructorBuilder' is null.
+
+Debugging this also revealed a few minor problems in the debugger, I'm
+now going to fix them first before I forget them again.


More information about the mono-bugs mailing list