[Mono-bugs] [Bug 75848][Blo] Changed - mcs fails to generate initialization code for fields whose value is a boxed value type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 26 07:46:13 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 rharinath at novell.com.

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

--- shadow/75848	2005-08-25 20:29:54.000000000 -0400
+++ shadow/75848.tmp.18062	2005-08-26 07:46:13.000000000 -0400
@@ -89,6 +89,21 @@
 var value is a default constant).
 
 ------- Additional Comments From carlos at unixmexico.org  2005-08-25 20:29 -------
 Created an attachment (id=15638)
 Proposed patch (this is the good one ;-) )
 
+
+------- Additional Comments From rharinath at novell.com  2005-08-26 07:46 -------
+Hmm, there's no problem with doing the thing I wanted :-)  It'll only
+disable the optimization for byte, short, long, etc.  The program will
+continue to be correct.
+
+So, to re-enable the optimization, we have to relax the condition to
+allow "implicit constant expression conversions" also.  If it's hard
+to detect, well, let's forget about it then -- correctness is more
+important than this optimization :-)
+
+Also, note that boxing is not the only problem -- there are other
+implicit conversions that could cause trouble too.
+
+In summary, I still think that your updated patch is incomplete.


More information about the mono-bugs mailing list