public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/100882] New: ICE in gimplify_var_or_parm_decl, at gimplify.c:2755
@ 2021-06-02 18:57 ibuclaw at gdcproject dot org
  2021-06-04 18:49 ` [Bug d/100882] " cvs-commit at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-06-02 18:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

Reduced test, adapted to make clear what the correct behaviour should be after
the ICE is fixed.
---
__gshared int counter = 0;
struct S
{
    this(int) { counter++; }
    ~this() { counter++; }
}

static S s;
static this()
{
    s = cast(shared) S(0);
    assert(counter == 2);
}
---

Reproducible from gdc-9 onwards.

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

end of thread, other threads:[~2021-09-17  6:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 18:57 [Bug d/100882] New: ICE in gimplify_var_or_parm_decl, at gimplify.c:2755 ibuclaw at gdcproject dot org
2021-06-04 18:49 ` [Bug d/100882] " cvs-commit at gcc dot gnu.org
2021-06-04 18:50 ` cvs-commit at gcc dot gnu.org
2021-06-04 18:50 ` cvs-commit at gcc dot gnu.org
2021-06-04 18:51 ` cvs-commit at gcc dot gnu.org
2021-06-04 18:52 ` ibuclaw at gdcproject dot org
2021-09-17  6:46 ` pinskia at gcc dot gnu.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).