[Issue 16618] Segmentation fault: 11

2016-10-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16618

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 16618] Segmentation fault: 11

2016-10-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16618

ag0ae...@gmail.com changed:

   What|Removed |Added

   Keywords||ice
 CC||ag0ae...@gmail.com
   Severity|regression  |normal

--- Comment #2 from ag0ae...@gmail.com ---
(In reply to changlon from comment #1)

Reduced/simplified further:


class Bufferz
{
alias owner this;
Buffer owner() { return Buffer.init; }
}

struct Buffer
{
alias range this;
Bufferz range() { return Bufferz.init; }
void slice() { error; }
}


You marked this as a regression, but you didn't specify which previous version
of dmd doesn't have the problem. For a bug to be a regression, the code must
have worked at some point. Downgrading to "normal".

--


[Issue 16618] Segmentation fault: 11

2016-10-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16618

--- Comment #1 from changlon  ---
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)
{
}

}
```

--