www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22866] New: ICE when accessing __traits(parameter) alias of


          Issue ID: 22866
           Summary: ICE when accessing __traits(parameter) alias of an
                    outer scope inside foreach
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: zorael gmail.com

dmd 2.099.

import std.stdio;

void main()
    alias outer = __traits(parameters);

    foreach (i; 0..1)

 Error: unknown, please file report on issues.dlang.org
https://run.dlang.io/is/x61hJp --
Mar 09 2022