www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20181] New: [nightly 2019-08-29] internal compiler error when


          Issue ID: 20181
           Summary: [nightly 2019-08-29] internal compiler error when
                    static foreach iterating property method of struct
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

Consider this code:

struct InversionList
    ubyte[] byCodepoint() { return null; }
void main()
    static foreach (ch; InversionList().byCodepoint) { }

On nightly, we encounter an internal compiler error in copyRegionExp because
the dotvar expression byCodePoint is not handled in the new region-based ctfe
memory management code.

Aug 29 2019