Bug 24192 – Bad context pointer access through AliasSeq member of nested struct

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-10-22T15:25:42Z
Last change time
2024-12-13T19:31:12Z
Assigned to
No Owner
Creator
Felix Hufnagel
Moved to GitHub: dmd#18191 →

Comments

Comment #0 by puremagic — 2023-10-22T15:25:42Z
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; }
Comment #1 by robert.schadek — 2024-12-13T19:31:12Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18191 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB