Thread overview
[Issue 23010] mixed in aliaseqs used as type dont initualize
Jun 22, 2022
Dlang Bot
Jun 24, 2022
Dlang Bot
April 11, 2022
https://issues.dlang.org/show_bug.cgi?id=23010

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from moonlightsentinel@disroot.org ---
N.B.: This code used to trigger an assertion failure in the backend until 2.082.1

--
June 22, 2022
https://issues.dlang.org/show_bug.cgi?id=23010

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #14237 "Fix Issue 23010 - mixed in aliaseqs used as type don't initialize" fixing this issue:

- Fix Issue 23010 - mixed in aliaseqs used as type don't initialize

  `TupleDeclaration` elements were inserted to the `members` array of
  current `ScopeDsymbol` but `TemplateMixin` declarations are already
  expanded in statement level and this confused DMD backend.
  After adding some code to insert tuple elements to
`AggregateDeclaration.fields`
  and for parsing tuples in `toObjFile`, the code in question can be removed.
  No more hidden symbols (like `__tuple_field_0`) inside any `members` field.

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

--
June 24, 2022
https://issues.dlang.org/show_bug.cgi?id=23010

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14237 "Fix Issue 23010 - mixed in aliaseqs used as type don't initialize" was merged into master:

- 5105b067bccb90399b183ec32c7b399c144d47aa by Boris Carvajal:
  Fix Issue 23010 - mixed in aliaseqs used as type don't initialize

  `TupleDeclaration` elements were inserted to the `members` array of
  current `ScopeDsymbol` but `TemplateMixin` declarations are already
  expanded in statement level and this confused DMD backend.
  After adding some code to insert tuple elements to
`AggregateDeclaration.fields`
  and for parsing tuples in `toObjFile`, the code in question can be removed.
  No more hidden symbols (like `__tuple_field_0`) inside any `members` field.

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

--