Re: A strange DMD error

2022-11-02 Thread Keivan Shah via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 17:05:03 UTC, ryuukk_ wrote: This reminds me of an issue i reported last year... https://issues.dlang.org/show_bug.cgi?id=22583 This seems to be very similar to the bug I am facing, mostly the same underlying issue. Should we somehow link the 2 issues and escal

Re: A strange DMD error

2022-11-02 Thread Keivan Shah via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 16:39:57 UTC, Steven Schveighoffer wrote: 100% this is a bug in DMD. It should be filed. I ran some more tests, removing almost any of the parameters or changing their types seems to avoid the problem. I also added a parameter name for the second parameter, and

Re: A strange DMD error

2022-11-01 Thread ryuukk_ via Digitalmars-d-learn
This reminds me of an issue i reported last year... https://issues.dlang.org/show_bug.cgi?id=22583

Re: A strange DMD error

2022-11-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/1/22 11:40 AM, Keivan Shah wrote: Hello, Today I came across a strange bug while using D with `dmd`. I have still not been able to figure out under what conditions does it happen but it seems to be a DMD related bug to me. Here is a reproducible snippet of the code ```D import std; a

Re: A strange DMD error

2022-11-01 Thread Tejas via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 15:49:54 UTC, Keivan Shah wrote: On Tuesday, 1 November 2022 at 15:42:43 UTC, Imperatorn wrote: On Tuesday, 1 November 2022 at 15:40:04 UTC, Keivan Shah wrote: Hello, Today I came across a strange bug while using D with `dmd`. I have still not been able to figur

Re: A strange DMD error

2022-11-01 Thread Keivan Shah via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 16:06:44 UTC, Imperatorn wrote: Hehe. One simple thing you could do is to create a struct instead for you params and pass that Yeah, can do, thanks for the suggestion. But anyways still want to see if anyone else has seen this issue, or has a clue about what

Re: A strange DMD error

2022-11-01 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 15:49:54 UTC, Keivan Shah wrote: On Tuesday, 1 November 2022 at 15:42:43 UTC, Imperatorn wrote: On Tuesday, 1 November 2022 at 15:40:04 UTC, Keivan Shah wrote: [...] Could be there's some restriction in DMD on number of arguments. May I ask if this was just a

Re: A strange DMD error

2022-11-01 Thread Keivan Shah via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 15:42:43 UTC, Imperatorn wrote: On Tuesday, 1 November 2022 at 15:40:04 UTC, Keivan Shah wrote: Hello, Today I came across a strange bug while using D with `dmd`. I have still not been able to figure out under what conditions does it happen but it seems to be a

Re: A strange DMD error

2022-11-01 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 1 November 2022 at 15:40:04 UTC, Keivan Shah wrote: Hello, Today I came across a strange bug while using D with `dmd`. I have still not been able to figure out under what conditions does it happen but it seems to be a DMD related bug to me. Here is a reproducible snippet of the co

A strange DMD error

2022-11-01 Thread Keivan Shah via Digitalmars-d-learn
Hello, Today I came across a strange bug while using D with `dmd`. I have still not been able to figure out under what conditions does it happen but it seems to be a DMD related bug to me. Here is a reproducible snippet of the code ```D import std; alias DG = void delegate(); class TType {