Bug 6229 – %= and /= no longer work on char type

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2011-06-29T22:16:00Z
Last change time
2011-06-30T22:47:00Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
r.sagitario

Comments

Comment #0 by r.sagitario — 2011-06-29T22:16:09Z
The latest dmd from git asserts when compiling this snippet: int main(string[] argv) { char a = 2; char b = 4; b /= a; return b; } Internal error: backend\cod4.c 1289 while dmd 2.053 succeeds. Same for %=. With wchar, the assert is one line later, dchar works.
Comment #1 by kennytm — 2011-06-30T01:53:07Z
The bug is introduced (or rather, exposed?) in commit 689ff. https://github.com/D-Programming-Language/dmd/commit/689ff
Comment #2 by bugzilla — 2011-06-30T22:47:00Z