D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3942 - dmd segfaults
Summary: dmd segfaults
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2010-03-12 14:11 UTC by Ellery Newcomer
Modified: 2015-06-09 01:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ellery Newcomer 2010-03-12 14:11:11 UTC
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.
Comment 1 Don 2010-03-15 12:17:36 UTC
This works in DMD2.041. Three segfaults were fixed there,
it's probably a duplicate of one of those.