October 22, 2023 [Issue 24192] New: Bad context pointer access through AliasSeq member of nested struct | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: puremagic@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; } -- |
Copyright © 1999-2021 by the D Language Foundation