www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3942] New: dmd segfaults

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



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: -------
Mar 12 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3942


Don <clugdbug yahoo.com.au> changed:

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



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: -------
Mar 15 2010