[Issue 6972] New: [CTFE] ICE with ubyte/=uint
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 18 12:03:36 PST 2011
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 at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-11-18 12:02:47 PST ---
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: -------
More information about the Digitalmars-d-bugs
mailing list