June 07, 2023 [Issue 23977] New: [REG2.102] cannot use getSymbolsByUDA on template struct with alias member | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23977 Issue ID: 23977 Summary: [REG2.102] cannot use getSymbolsByUDA on template struct with alias member Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: johanengelen@weka.io Testcase: ``` struct S(string str) { alias strstr = str; int i; } struct A {} import std.traits; alias B = getSymbolsByUDA!(S!("a"), A); ``` Since dlang 2.102 this gives the error: Error: first argument is not a symbol Error: template instance `std.traits.getUDAs!("a", A)` error instantiating instantiated from here: `hasUDA!("a", A)` instantiated from here: `getSymbolsByUDAImpl!(S!"a", A, "strstr", "i")` <source>(10): instantiated from here: `getSymbolsByUDA!(S!"a", A)` Probably introduced by this PR: https://github.com/dlang/phobos/pull/8631 -- |
Copyright © 1999-2021 by the D Language Foundation