Thread overview
[Issue 6229] New: %= and /= no longer work on char type
Jun 30, 2011
Rainer Schuetze
Jun 30, 2011
kennytm@gmail.com
Jul 01, 2011
Walter Bright
June 30, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6229

           Summary: %= and /= no longer work on char type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: r.sagitario@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2011-06-29 22:16:09 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 30, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6229


kennytm@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm@gmail.com
           Platform|Other                       |x86
         OS/Version|Windows                     |All


--- Comment #1 from kennytm@gmail.com 2011-06-30 01:53:07 PDT ---
The bug is introduced (or rather, exposed?) in commit 689ff.

https://github.com/D-Programming-Language/dmd/commit/689ff

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 01, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6229


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-06-30 22:47:00 PDT ---
https://github.com/D-Programming-Language/dmd/commit/136d88e45532d95434f4c3226a4078aca14da90a

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