[Issue 16618] Segmentation fault: 11

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 16 07:07:46 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16618

--- Comment #1 from changlon <changlon at gmail.com> ---
for v2.072.0-b2

```sh
struct embed(T) {
                T embed_instance ;
    @property payload() {
                return embed_instance ;
        }
}
class Bufferz {
        alias owner this ;
                Buffer* _owner ;
auto owner() {
                return _owner ;
        }

}

struct Buffer {
                alias range this ;
                embed!Bufferz _range ;
                auto range() {
                        return _range.payload ;
                }
                ref slice() {
Slice;
                }
        pragma(inline)
{
        }

}
```

--


More information about the Digitalmars-d-bugs mailing list