digitalmars.D.bugs - [Issue 14147] New: Compiler crash on identical functions in a single
- via Digitalmars-d-bugs (30/30) Feb 08 2015 https://issues.dlang.org/show_bug.cgi?id=14147
https://issues.dlang.org/show_bug.cgi?id=14147 Issue ID: 14147 Summary: Compiler crash on identical functions in a single module Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: denis.gladkiy yahoo.com Created attachment 1475 --> https://issues.dlang.org/attachment.cgi?id=1475&action=edit The to crash DMD. The compiler (2.066.1) crashes when compiling this: pure auto mul(const int[] left, const int[] right) { return zip(left, right).map!(a => a[0] * a[1]) ; } pure auto mul(const int[] left, const int[] right) { return zip(left, right).map!(a => a[0] * a[1]) ; } Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this' on line 912 in file 'struct.c' I've attached the code to reproduce the bug. --
Feb 08 2015