Bug 15278 – Compile-time segfault when compiling code with alias this

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-02T23:02:00Z
Last change time
2020-03-21T03:56:42Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Andrei Alexandrescu
See also
https://issues.dlang.org/show_bug.cgi?id=14499

Comments

Comment #0 by andrei — 2015-11-02T23:02:00Z
dmd v2.069-devel-5db650f segfaults while compiling this code with -unittest: module persistent_list; import std.experimental.allocator; struct List(T) { private IAllocator allocator; private List!T unqualifiedCopy() const; alias unqualifiedCopy this; } void main() { List!(immutable int) lst; }
Comment #1 by ag0aep6g — 2015-11-02T23:16:53Z
Reduced: ---- interface IAllocator {} struct List { IAllocator allocator; List unqualifiedCopy() const; alias unqualifiedCopy this; } ----
Comment #2 by k.hara.pg — 2015-11-03T06:19:03Z
Comment #3 by b2.temp — 2019-07-16T20:30:43Z
fixed since 2.086