https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98277

            Bug ID: 98277
           Summary: d: ICE in gimplify_expr, at gimplify.c
           Product: gcc
           Version: 9.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

This happens when using an enum member in a ternary condition for a function
that returns by reference.

---
enum Side
{
    left
}

int left;
int right;

ref int get(Side side)
{
    return side == Side.left ? left : right;
}
---

Reply via email to