[Mono-bugs] [Bug 56454][Maj] New - Array assignment of concatentated strings leads to duplication
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 12:41:07 -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:07.000000000 -0400
+++ shadow/56454.tmp.28166 2004-04-04 12:41:07.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 56454
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details: debian unstable
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: dave-mono@earth.li
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Array assignment of concatentated strings leads to duplication
+
+Description of Problem:
+
+If you assign an element of a string array to something like
+ string [] bob = { "A" + 'B' + "C" } ; // (string + char + string)
+
+The second string will be duplicated.
+
+Steps to reproduce the problem:
+1. Compile attached t5.cs
+2. Run
+
+Actual Results:
+String: ABC
+Array : ABCC
+
+Expected Results:
+The same
+
+Additional Information:
+This is causing bugs in the test cases, and running the test cases in
+corlib would have found this regression. True it would have been easier if
+all of the cases passed, then it would be more obvious when you cause a
+regression.