Thread overview
[Issue 8628] New: IntegerExp::toInteger(): Assertion `0' failed
Sep 07, 2012
Ellery Newcomer
Dec 02, 2012
deadalnix
Jan 11, 2013
Andrej Mitrovic
Jan 11, 2013
Ellery Newcomer
September 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8628

           Summary: IntegerExp::toInteger(): Assertion `0' failed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ellery-newcomer@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-09-07 15:11:01 PDT ---
dmd 2.060 x64  linux

code:

//a.d
import b;

void main() {
    d_type!double(null);
}

//b.d
T d_type(T) () {
    Dim!T.initArr;
}



template Dim(T) {
    int[] tuple2arr()() {
    }
    bool check() {
        if(dims) return false;
    }

    enum int[] dims = tuple2arr!()();
}


compile:

dmd b a

produces fireworks:

e = 0x220d6b0, ty = 35
_error_ 0x21845a0
dmd: expression.c:2073: virtual dinteger_t IntegerExp::toInteger(): Assertion
`0' failed.
Aborted (core dumped)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8628


deadalnix <deadalnix@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deadalnix@gmail.com


--- Comment #1 from deadalnix <deadalnix@gmail.com> 2012-12-02 01:30:58 PST ---
I confirm the bug. It showed up today in some D dev of my own. Stopping dustmite as it have been reported already.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8628


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-10 16:45:29 PST ---
I can't reproduce with 2.061 on x86 win32. (I can reproduce on 2.060).

Please verify on x64 and then mark as WORKSFORME if it's solved.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8628


Ellery Newcomer <ellery-newcomer@utulsa.edu> changed:

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


--- Comment #3 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2013-01-10 20:40:12 PST ---
Doesn't show in linux, 32 or 64 bit.

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