public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/98277] New: d: ICE in gimplify_expr, at gimplify.c
@ 2020-12-14 14:28 ibuclaw at gdcproject dot org
  2020-12-15 21:25 ` [Bug d/98277] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-12-14 14:28 UTC (permalink / raw)
  To: gcc-bugs

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;
}
---

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-15 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 14:28 [Bug d/98277] New: d: ICE in gimplify_expr, at gimplify.c ibuclaw at gdcproject dot org
2020-12-15 21:25 ` [Bug d/98277] " cvs-commit at gcc dot gnu.org
2020-12-15 21:25 ` cvs-commit at gcc dot gnu.org
2020-12-15 21:27 ` cvs-commit at gcc dot gnu.org
2020-12-15 21:28 ` ibuclaw at gdcproject dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).