public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xry111 at mengyan1223 dot wang" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/101396] [12 Regression] ICE in decompose, at wide-int.h:984 building webkitgtk-2.32.2 with -flto -fipa-pta
Date: Sat, 10 Jul 2021 09:26:21 +0000	[thread overview]
Message-ID: <bug-101396-4-7uIZv1zCdm@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101396-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
Testcase:

$ cat a.cpp

enum class A : __INT32_TYPE__ {
        a,
        b,
        c
};

int main()
{
        return (int) A::a;
}

$ cat b.cpp

enum class A : __UINT64_TYPE__ {
        a,
        b,
        c
};

int f(enum A x)
{
        return (int) x;
}

$ ~/gcc-trunk/bin/g++ a.cpp b.cpp -flto

during IPA pass: odr
lto1: internal compiler error: in decompose, at wide-int.h:984

  reply	other threads:[~2021-07-10  9:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 18:04 [Bug ipa/101396] New: " xry111 at mengyan1223 dot wang
2021-07-10  9:26 ` xry111 at mengyan1223 dot wang [this message]
2021-07-10  9:48 ` [Bug ipa/101396] [12 Regression] ICE in decompose, at wide-int.h:984 with -flto and incompatible enum class definitions xry111 at mengyan1223 dot wang
2021-07-10 13:18 ` pinskia at gcc dot gnu.org
2021-07-10 17:50 ` xry111 at mengyan1223 dot wang
2021-07-30  7:59 ` cvs-commit at gcc dot gnu.org
2021-07-30  8:04 ` xry111 at mengyan1223 dot wang

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-101396-4-7uIZv1zCdm@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: link
Be 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).