Bug 20692 – Nested alias declarations and getMember trait can crash dmd
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-03-21T09:11:30Z
Last change time
2021-04-02T05:45:28Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2020-03-21T09:11:30Z
Test case:
struct S() {
void fun() {
gun("");
}
void gun(T)(T) {
alias buggy = bug;
}
}
alias X = S!();
void main() {
X().gun(0);
}
alias bug = __traits(getMember, X, "fun");
Comment #1 by dlang-bot — 2020-03-21T09:59:35Z
@BorisCarvajal created dlang/dmd pull request #10952 "Fix Issue 20692 - Nested alias declarations and getMember trait can c…" fixing this issue:
- Fix Issue 20692 - Nested alias declarations and getMember trait can crash dmd
https://github.com/dlang/dmd/pull/10952
Comment #2 by dlang-bot — 2020-03-31T10:27:32Z
dlang/dmd pull request #10952 "Fix Issue 20692 - Nested alias declarations and getMember trait can c…" was merged into stable:
- ef669f8ab65b040075e55f07edea7c138e66ec2e by Boris Carvajal:
Fix Issue 20692 - Nested alias declarations and getMember trait can crash dmd
https://github.com/dlang/dmd/pull/10952
Comment #3 by dlang-bot — 2021-04-02T05:45:28Z
dlang/dmd pull request #12339 "[dmd-cxx] Backport fixes and trivial features from upstream dmd" was merged into dmd-cxx:
- 9cbfd4a8700bb840b672aeb08b3ec6cce295c731 by Boris Carvajal:
[dmd-cxx] Fix Issue 20692 - Nested alias declarations and getMember trait can crash dmd
https://github.com/dlang/dmd/pull/12339