[Issue 6458] Multibyte char literals shouldn't implicitly convert to	char
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jan 30 20:24:34 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6458
yebblies <yebblies at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
           Platform|Other                       |All
         AssignedTo|nobody at puremagic.com        |yebblies at gmail.com
         OS/Version|Windows                     |All
--- Comment #10 from yebblies <yebblies at gmail.com> 2012-01-31 15:24:30 EST ---
(In reply to comment #9)
> 
> The compiler complains about the code above, just as it should, because a long
> won't fit in an int. Don't know why character literals are treated differently.
They aren't.  The problem is that 'ä' evaluates to 0x00E4, and a bug in integer
range propagation thinks this is ok to convert back to a char.
-- 
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