Thread overview
[Issue 19093] 'cannot alias itself' when using a template instantiation in a template parameter
Dec 12, 2019
Basile-z
Mar 21, 2020
Basile-z
Jul 04, 2020
Basile-z
Jul 05, 2020
Simen Kjaeraas
Dec 17, 2022
Iain Buclaw
December 12, 2019
https://issues.dlang.org/show_bug.cgi?id=19093

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Windows                     |All

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19093

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
July 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19093

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
This is more a bad diagnostic. The real problem being that the previous template params cannot be reused, e.g

---
alias Foo(T) = T;

struct Test(T, Foo!(T[]) t) {}

void main()
{
    Test!(int, [3]) a;
}
---

--
July 05, 2020
https://issues.dlang.org/show_bug.cgi?id=19093

--- Comment #2 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
Works better if Foo's parameter is called something else:

alias Foo(U) = U; // undefined identifier T

Obviously you're right about the real problem, and the error message is a case of bad diagnostic. However, I think you should be allowed to reuse the previous template params.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19093

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=19093

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19457

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--