March 12, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3942

           Summary: dmd segfaults
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Linux
            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> 2010-03-12 14:11:11 PST ---
following code causes compiler to segfault:

import std.path;
import std.range;
import std.algorithm;

void main(){
    auto f = ["1","2"];
    auto d = ["1","2"];
    reduce!("a && (fcmp(b.at!(0),b.at!(1)) == 0)")(true, zip(d,f));
}


gdb says offending code is

Dsymbol *s = ti->inst->toAlias();

at expression.c:6268

if that's helpful.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3942


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-03-15 12:17:36 PDT ---
This works in DMD2.041. Three segfaults were fixed there, it's probably a duplicate of one of those.

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