[Mono-bugs] [Bug 74073][Blo] Changed - amd casting regression
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 24 Mar 2005 20:17:39 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=74073
--- shadow/74073 2005-03-24 17:22:14.000000000 -0500
+++ shadow/74073.tmp.23082 2005-03-24 20:17:39.000000000 -0500
@@ -11,13 +11,13 @@
AssignedTo: mono-bugs@ximian.com
ReportedBy: plahcim@o2.pl
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: Compilation error in pango module
+Summary: amd casting regression
Description of Problem:
Gtk# don't want to build.
make[3]: Entering directory `/root/komp/mono/gtk-sharp/pango'
@@ -50,6 +50,26 @@
failure is bogus. The failing line is:
return (IGeneratable[]) gens.ToArray (typeof (IGeneratable));
and I split it up and C.WL'd the returned value from ToArray and it
printed GtkSharp.Generation.IGeneratable[], so the cast should work.
+
+------- Additional Comments From bmaurer@users.sf.net 2005-03-24 20:17 -------
+I can repro on this amd box with:
+using System.Collections;
+
+interface IBlah {}
+
+class X : IBlah {
+ static void Main ()
+ {
+ ArrayList ar = new ArrayList ();
+
+ for (int i = 0; i < 100; i ++)
+ ar.Add (new X ());
+
+ IBlah [] zzz = (IBlah []) ar.ToArray (typeof (IBlah));
+ }
+}
+
+This does *not* happen on x86.