Bug 3942 – dmd segfaults

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-03-12T14:11:00Z
Last change time
2015-06-09T01:27:38Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2010-03-12T14:11:11Z
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 by clugdbug — 2010-03-15T12:17:36Z
This works in DMD2.041. Three segfaults were fixed there, it's probably a duplicate of one of those.