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 via email to