Bug 21532 – dtoh: Forward-referencing issues for type aliases and templates

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-09T16:46:58Z
Last change time
2024-12-13T19:13:52Z
Assigned to
No Owner
Creator
kinke
Moved to GitHub: dmd#19849 →

Comments

Comment #0 by kinke — 2021-01-09T16:46:58Z
In current frontend.h, we have methods using the `d_uns64` type alias before the corresponding `typedef`. The common `struct Array` template is also used before being declared (a fwd declaration might suffice, but there isn't any either).
Comment #1 by moonlightsentinel — 2021-06-18T11:22:23Z
Most of these issues will be resolved https://github.com/dlang/dmd/pull/12678. Type aliases in template declarations re more complicated because dtoh will need to resolve the alias from the TypeIdentifier
Comment #2 by robert.schadek — 2024-12-13T19:13:52Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19849 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB