[Issue 6458] Multibyte char literals shouldn't implicitly convert to char

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 8 22:33:21 PDT 2011


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



--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-08 22:33:20 PDT ---
Ah, yes. I forgot that you could assign a single value to every element in an
array like that. That being the case, it should just fail to compile given that
the code point is not going to fit in each of the elements of the array. But
regardless, something odd is definitely going on here given that 'ä'.sizeof ==
2. It's probably an edge case which wasn't caught, since the only types which
take up multiple elements like that are char and wchar.

-- 
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