[Issue 14147] New: Compiler crash on identical functions in a single module
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Feb 8 01:44:27 PST 2015
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 at puremagic.com
Reporter: denis.gladkiy at 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.
--
More information about the Digitalmars-d-bugs
mailing list