Re: Postblit segfault.

2020-06-02 Thread MaoKo via Digitalmars-d-learn
On Tuesday, 2 June 2020 at 06:53:47 UTC, Basile B. wrote: Ok cool. I hesitate to report an issue because the bug was too "simple". This is a proof that dmd user use the GC a lot :). Mmmmh I don't follow you, this has nothing to do with the GC. It's rather a problem with the backend (i.e

Re: Postblit segfault.

2020-06-02 Thread Basile B. via Digitalmars-d-learn
On Tuesday, 2 June 2020 at 06:34:14 UTC, MaoKo wrote: On Monday, 1 June 2020 at 19:52:39 UTC, Basile B. wrote: On Monday, 1 June 2020 at 15:55:45 UTC, H. S. Teoh wrote: On Mon, Jun 01, 2020 at 03:27:11PM +, Basile B. via Digitalmars-d-learn wrote: [...] Possibly a backend bug (keyword

Re: Postblit segfault.

2020-06-02 Thread MaoKo via Digitalmars-d-learn
On Monday, 1 June 2020 at 19:52:39 UTC, Basile B. wrote: On Monday, 1 June 2020 at 15:55:45 UTC, H. S. Teoh wrote: On Mon, Jun 01, 2020 at 03:27:11PM +, Basile B. via Digitalmars-d-learn wrote: [...] Possibly a backend bug (keyword "wrong code"), caused by either of [1] or [2] [1]

Re: Postblit segfault.

2020-06-01 Thread Basile B. via Digitalmars-d-learn
On Monday, 1 June 2020 at 15:55:45 UTC, H. S. Teoh wrote: On Mon, Jun 01, 2020 at 03:27:11PM +, Basile B. via Digitalmars-d-learn wrote: [...] Possibly a backend bug (keyword "wrong code"), caused by either of [1] or [2] [1] https://github.com/dlang/dmd/pull/9357 [2]

Re: Postblit segfault.

2020-06-01 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jun 01, 2020 at 03:27:11PM +, Basile B. via Digitalmars-d-learn wrote: [...] > Possibly a backend bug (keyword "wrong code"), caused by either of [1] or > [2] > > [1] https://github.com/dlang/dmd/pull/9357 > [2] https://github.com/dlang/dmd/pull/9623/files Yeah, it looks like a

Re: Postblit segfault.

2020-06-01 Thread Basile B. via Digitalmars-d-learn
On Monday, 1 June 2020 at 14:53:43 UTC, H. S. Teoh wrote: On Mon, Jun 01, 2020 at 01:53:09PM +, Bastiaan Veelo via Digitalmars-d-learn wrote: On Monday, 1 June 2020 at 09:42:44 UTC, Boris Carvajal wrote: > On Monday, 1 June 2020 at 06:35:36 UTC, MaoKo wrote: > > Hello, I don't understand

Re: Postblit segfault.

2020-06-01 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jun 01, 2020 at 01:53:09PM +, Bastiaan Veelo via Digitalmars-d-learn wrote: > On Monday, 1 June 2020 at 09:42:44 UTC, Boris Carvajal wrote: > > On Monday, 1 June 2020 at 06:35:36 UTC, MaoKo wrote: > > > Hello, I don't understand why this code segfault on > > > > Reduced to: > > > >

Re: Postblit segfault.

2020-06-01 Thread Bastiaan Veelo via Digitalmars-d-learn
On Monday, 1 June 2020 at 09:42:44 UTC, Boris Carvajal wrote: On Monday, 1 June 2020 at 06:35:36 UTC, MaoKo wrote: Hello, I don't understand why this code segfault on Reduced to: import std.stdio; struct S {} void main() { S[1] s; writeln(s); } This used to work up to dmd 2.084.1. It

Re: Postblit segfault.

2020-06-01 Thread Boris Carvajal via Digitalmars-d-learn
On Monday, 1 June 2020 at 06:35:36 UTC, MaoKo wrote: Hello, I don't understand why this code segfault on Reduced to: import std.stdio; struct S {} void main() { S[1] s; writeln(s); }

Re: Postblit segfault.

2020-06-01 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Monday, 1 June 2020 at 06:35:36 UTC, MaoKo wrote: Hello, I don't understand why this code segfault on Linux/FreeBSD: import std.stdio; struct _Poc { this(this) { writeln("_Poc.this(this)"); } } void main() { _Poc[1] valueArray = [ _Poc() ]; writeln(valueArray); } I've just defined

Postblit segfault.

2020-06-01 Thread MaoKo via Digitalmars-d-learn
Hello, I don't understand why this code segfault on Linux/FreeBSD: import std.stdio; struct _Poc { this(this) { writeln("_Poc.this(this)"); } } void main() { _Poc[1] valueArray = [ _Poc() ]; writeln(valueArray); } I've just defined the postblit function in _Poc to see how much it's