[Issue 6504] Regression(2.041): "str" ~ [arr] allows string literal to be modified

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 16 10:33:00 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6504



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-08-16 10:32:58 PDT ---
This bug was introduced in this commit, which fixed bug 5852.

https://github.com/D-Programming-Language/dmd/commit/5c7c6b51e27d9cd394ddda4f7940cdf9c1610953

This means that "xxx" ~ ['c'] is a string literal of type char[]
(that is, it's a _mutable_ string literal). Either this needs to be changed, or
else a partial fix of bug 2356 needs to be made.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list