[Issue 24192] New: Bad context pointer access through AliasSeq member of nested struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 22 15:25:42 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24192
Issue ID: 24192
Summary: Bad context pointer access through AliasSeq member of
nested struct
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: puremagic at zoadian.de
original problem: https://run.dlang.io/is/Yvu5qu
here's a possible test case:
alias Seq(T...)=T;
int main(){
auto foo = 2;
assert((){
auto bar()=>foo;
struct RESULT { alias seq = Seq!bar; }
return RESULT();
}().seq[0]()==foo);
return 0;
}
--
More information about the Digitalmars-d-bugs
mailing list