digitalmars.D.bugs - [Issue 14388] New: Assertion failed: (type->ty != Tstruct ||
- via Digitalmars-d-bugs (41/41) Apr 01 2015 https://issues.dlang.org/show_bug.cgi?id=14388
https://issues.dlang.org/show_bug.cgi?id=14388 Issue ID: 14388 Summary: Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this) Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: dransic gmail.com Reduced test: --- struct Data(A a) { auto foo() { return Data!a.init; } } struct A { struct Item {} immutable(Item)[] items; this(int dummy) { items = [Item()].idup; // No error with .dup } } void main() { auto test = Data!(A(42)).init.foo(); } --- DMD 2.067.0: Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this), function semantic, file struct.c, line 929. --
Apr 01 2015