www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6972] New: [CTFE] ICE with ubyte/=uint

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

           Summary: [CTFE] ICE with ubyte/=uint
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



int blah()
{
    ubyte n = 6;
    return n /= 2u;
}
static assert(blah()==3);

CTFE internal error: unsupported assignment cast(uint)cast(int)n /= 2u
Assertion failure: 'e1->op == TOKarraylength || e1->op == TOKvar || e1->op ==
TO
Kdotvar || e1->op == TOKindex || e1->op == TOKslice' on line 3193 in file
'inter
pret.c'

Has been hitting this assert since 2.053; before that, it just gave a
"unsupported at compile time" error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 18 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6972


Walter Bright <bugzilla digitalmars.com> changed:

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



21:54:52 PST ---
https://github.com/D-Programming-Language/dmd/commit/7816eb5eaaceee107e2e276ab48fdfa07485234a

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

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