Bug 24244 – -vcg-ast breaks on static foreach alias

Status
NEW
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2023-11-14T13:01:59Z
Last change time
2024-12-13T19:31:46Z
Assigned to
No Owner
Creator
Marcelo Silva Nascimento Mancini
Moved to GitHub: dmd#20357 →

Comments

Comment #0 by msnmancini — 2023-11-14T13:01:59Z
```d alias thisMod = __traits(parent, {}); void main() { static foreach(mem; __traits(allMembers, thisMod)) {{ alias modMem = __traits(getMember, thisMod, mem); }} } ``` This is the minimal program for this error. Tested with both DMD and LDC
Comment #1 by robert.schadek — 2024-12-13T19:31:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20357 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB