[Mono-bugs] [Bug 56454][Maj] Changed - Array assignment of concatentated strings leads to duplication
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 12:43:22 -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 dave-mono@earth.li.
http://bugzilla.ximian.com/show_bug.cgi?id=56454
--- shadow/56454 2004-04-04 12:41:35.000000000 -0400
+++ shadow/56454.tmp.28211 2004-04-04 12:43:22.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 56454
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details: debian unstable
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Major
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: dave-mono@earth.li
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -41,6 +41,25 @@
regression.
------- Additional Comments From dave-mono@earth.li 2004-04-04 12:41 -------
Created an attachment (id=7194)
Test case
+
+------- Additional Comments From dave-mono@earth.li 2004-04-04 12:43 -------
+The compiler appears to be duplicating the second string. Monodis
+gives me:
+
+ IL_001b: ldc.i4.1
+ IL_001c: newarr [mscorlib]System.String
+ IL_0021: dup
+ IL_0022: ldc.i4.0
+ IL_0023: ldstr "A"
+ IL_0028: ldc.i4.s 0x42
+ IL_002a: box [mscorlib]System.Char
+ IL_002f: ldstr "CC"
+ This should be "C" ^^^^
+ IL_0034: call string valuetype
+[mscorlib]'System.String'::'Concat'(object, object, object)
+ IL_0039: stelem.ref
+ IL_003a: stsfld string[] 'p.m'::'ResultsNfi1'
+