www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8628] New: IntegerExp::toInteger(): Assertion `0' failed

reply d-bugmail puremagic.com writes:
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



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: -------
Sep 07 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8628


deadalnix <deadalnix gmail.com> changed:

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



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: -------
Dec 02 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jan 10 2013
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jan 10 2013