Bug 22866 – ICE when accessing __traits(parameter) alias of an outer scope inside foreach

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-03-09T21:18:21Z
Last change time
2023-01-08T20:22:33Z
Keywords
ice
Assigned to
No Owner
Creator
JR

Comments

Comment #0 by zorael — 2022-03-09T21:18:21Z
dmd 2.099. --- import std.stdio; void main() { alias outer = __traits(parameters); foreach (i; 0..1) { writeln(outer); } } --- > Error: unknown, please file report on issues.dlang.org https://run.dlang.io/is/x61hJp
Comment #1 by b2.temp — 2023-01-08T20:22:33Z
fixed seems 2.099.1