[Issue 23977] New: [REG2.102] cannot use getSymbolsByUDA on template struct with alias member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 7 22:06:30 UTC 2023
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 at puremagic.com
Reporter: johanengelen at 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
--
More information about the Digitalmars-d-bugs
mailing list