www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22881] New: ICE Index of array outside of bounds at CTFE

https://issues.dlang.org/show_bug.cgi?id=22881

          Issue ID: 22881
           Summary: ICE Index of array outside of bounds at CTFE
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

This appears to have been introduced in 2.080.0/2.080.1.

Code:

static bar = "hello".ptr[0 .. 6];

Output:

Error: unknown, please file report on issues.dlang.org

--
Mar 16 2022