From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE88F3858C39; Fri, 13 Jan 2023 13:20:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE88F3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673616013; bh=IBHa/b+EXFR0QWnn3VVUtDK+aqHqTHBltwdck3quulg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rI8PjMgE3m/afo5+w1C3tdrfkbhP7pQlo4QTKAhVM0QVgxvjid4c04UamHAcNPkfH o6k4rjHNI6qXLvvUCJ6lqTXesJ6ZmQH7Du71WCAy3JSJZMJQdW/ZErHyzvx3vFshKt 9OPtWALiSnq059VyZLvLQrKvvtAwZ0kBB3buqbhE= From: "eebssk1 at godaftwithebk dot pub" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108383] g++ ICE with -O3 and -flto and -fdeclone-ctor-dtor on simple function Date: Fri, 13 Jan 2023 13:20:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: eebssk1 at godaftwithebk dot pub X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108383 --- Comment #4 from eebssk1 at godaftwithebk dot pub --- The problem occurs at final linking. x86_64-w64-mingw32-g++ -o src/dxgi/dxgi.dll src/dxgi/dxgi.dll.p/version.o src/dxgi/dxgi.dll.p/dxgi_adapter.cpp.obj src/dxgi/dxgi.dll.p/dxgi_enums.cpp= .obj src/dxgi/dxgi.dll.p/dxgi_factory.cpp.obj src/dxgi/dxgi.dll.p/dxgi_format.cpp.obj src/dxgi/dxgi.dll.p/dxgi_main.cpp.o= bj src/dxgi/dxgi.dll.p/dxgi_monitor.cpp.obj src/dxgi/dxgi.dll.p/dxgi_options.cpp.obj src/dxgi/dxgi.dll.p/dxgi_output.cpp.obj src/dxgi/dxgi.dll.p/dxgi_surface.cpp.obj src/dxgi/dxgi.dll.p/dxgi_swapchain.cpp.obj -Wl,--allow-shlib-undefined -Wl,= -O1 -shared ../src/dxgi/dxgi.def -Wl,--start-group -Wl,--out-implib=3Dsrc/dxgi/dxgi.dll.a -static -static-libgcc -static-libst= dc++ -Wl,--file-alignment=3D4096 -Wl,-O3,--relax,--sort-section=3Dalignment,--sort-common=3Ddescending -flto src/dxvk/libdxvk.a src/util/libutil.a src/spirv/libspirv.a src/wsi/libwsi.a subprojects/libdisplay-info/libdisplay-info.a src/vulkan/libvkcommon.a -pth= read -lm -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lu= uid -lcomdlg32 -ladvapi32 -Wl,--end-group -freport-bug lto-wrapper: warning: using serial compilation of 13 LTRANS jobs lto-wrapper: note: see the =E2=80=98-flto=E2=80=99 option documentation for= more information during GIMPLE pass: alias ../src/dxgi/../util/log/../thread.h: In member function =E2=80=98__ct =E2= =80=99: ../src/dxgi/../util/log/../thread.h:110:14: internal compiler error: in binds_to_current_def_p, at symtab.cc:2494 .... So uhh I currently have no idea on how to provide a testcase in such case. Sorry,These compiler thing is not my profession. I just open such ticket as= no cares it before.=