Bug 23495 – Can't use 2 aliases to members of different struct/classes (Template instance is nested in both `A` and `B`)

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-11-19T10:39:05Z
Last change time
2024-12-13T19:25:45Z
Assigned to
No Owner
Creator
Marcelo Silva Nascimento Mancini
Moved to GitHub: dmd#20187 →

Comments

Comment #0 by msnmancini — 2022-11-19T10:39:05Z
This error was found by Vabenil on Discord. Error: template instance `AliasSeq!(foo, bar)` `AliasSeq!(foo, bar)` is nested in both `A` and `B` Test code: ```d import std.meta; import std.stdio; struct A { int foo; } struct B { int bar; } int main() { writeln(AliasSeq!(A.foo, B.bar).stringof); return 0; } ```
Comment #1 by robert.schadek — 2024-12-13T19:25:45Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20187 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB