[Issue 20181] New: [nightly 2019-08-29] internal compiler error when static foreach iterating property method of struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 29 10:38:35 UTC 2019


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

          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 at puremagic.com
          Reporter: default_357-line at 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.

--


More information about the Digitalmars-d-bugs mailing list