www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1094] New: switch bug

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1094

           Summary: switch bug
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


Originaly reported by BCS <ao pathlink.com> in 
news:ce0a334389688c93c3bbfaa07d6 news.digitalmars.com :

# void main(char[][] argv)
# {
#   switch("#!")
#   {
#     case "#!": writef("----Found #!\n");    break;
#     case "\xFF\xFE"c:                       break;
#     default:   writef("----Found ASCII\n"); break;
#   }
# }
#
# On dmd 1.009 linux and win32 this prints "----Found ASCII". Drop the middle
# case and it prints "----Found #!".

Added to DStress as
http://dstress.kuehne.cn/run/s/switch_24_A.d
http://dstress.kuehne.cn/run/s/switch_24_B.d
http://dstress.kuehne.cn/run/s/switch_24_C.d


-- 
Apr 05 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1094


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2007-04-20 13:18 -------
Fixed DMD 1.013


-- 
Apr 20 2007