[Issue 17146] New: Internal error: tk.c 266 with -O -inline

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Feb 4 16:24:57 PST 2017


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

          Issue ID: 17146
           Summary: Internal error: tk.c 266 with -O -inline
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: sludwig at outerproduct.org

---
final class C {
    void foo() {
        S[] s;
        if (s[$-1] == S.init) {}
    }
}

struct S { int[] a; int b; }

void bar() { C.init.foo(); }
---

compiling with "dmd -O -inline" yields "Internal error: tk.c 266"

Original occurrence: https://github.com/rejectedsoftware/diet-ng/issues/15

--


More information about the Digitalmars-d-bugs mailing list