public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug d/100882] New: ICE in gimplify_var_or_parm_decl, at gimplify.c:2755 Date: Wed, 02 Jun 2021 18:57:45 +0000 [thread overview] Message-ID: <bug-100882-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2021-06-02 18:57 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-02 18:57 ibuclaw at gdcproject dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-100882-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).