Thread overview
[Issue 23686] template instance reused with default alias arg
[Issue 23686] template instance reused with default alas arg
Oct 14, 2023
Dlang Bot
Oct 14, 2023
Basile-z
Oct 14, 2023
Dlang Bot
Oct 15, 2023
Basile-z
Nov 01, 2023
Dlang Bot
October 14, 2023
https://issues.dlang.org/show_bug.cgi?id=23686

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@SixthDot created dlang/dmd pull request #15679 "fix issue 23686 - TemplateAliasParam default value possibly considere…" fixing this issue:

- fix issue 23686 - TemplateAliasParam default value possibly considered equal in different instances

  The default arg might depend on another TemplateParameter,
  in which case it is required to copy the AST, otherwise
  different instances of the template might be falsy considered equal.

https://github.com/dlang/dmd/pull/15679

--
October 14, 2023
https://issues.dlang.org/show_bug.cgi?id=23686

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|template instance reused    |template instance reused
                   |with default alas arg       |with default alias arg

--
October 14, 2023
https://issues.dlang.org/show_bug.cgi?id=23686

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@SixthDot updated dlang/dmd pull request #15681 "fix issue 23865 - ICE on attempt to insert an non overloadable symbol…" fixing this issue:

- fix issue 23686 - TemplateAliasParam default value possibly considered equal in different instances (#15679)

  The default arg might depend on another TemplateParameter,
  in which case it is required to copy the AST, otherwise
  different instances of the template might be falsy considered equal.

https://github.com/dlang/dmd/pull/15681

--
October 15, 2023
https://issues.dlang.org/show_bug.cgi?id=23686

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |FIXED

--
November 01, 2023
https://issues.dlang.org/show_bug.cgi?id=23686

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15771 "merge stable" was merged into master:

- 26f706a9ddc760d585e4c0eb9d18dc354158426c by SixthDot:
  fix issue 23686 - TemplateAliasParam default value possibly considered equal
in different instances (#15679)

  The default arg might depend on another TemplateParameter,
  in which case it is required to copy the AST, otherwise
  different instances of the template might be falsy considered equal.

https://github.com/dlang/dmd/pull/15771

--