From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37F793861876; Thu, 11 Jan 2024 09:58:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37F793861876 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704967084; bh=d9YjCpYTYsHokFMxOtMGgFTtWy5Zf7xcBPBcJ6MAcHA=; h=From:To:Subject:Date:From; b=R4iRNn/vmeQULdiK9ZdCo4zRX64/XEGUoaCutko2PbHxtpxSf5ff6oBAw4g5gkcV5 IIMuGleqEDsOYORs4+EDKewwzgr3oAe3TC2u2eYBdgfcrfgGuMep+8MoYkMlfEkdnU lGCkIooMAbkoWJSy4Sf3jz5lJlAkoJ0zAqhVJDGQ= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113332] New: [12/13/14 regression] ICE when building fcitx-5.1.6 Date: Thu, 11 Jan 2024 09:58:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D113332 Bug ID: 113332 Summary: [12/13/14 regression] ICE when building fcitx-5.1.6 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 57038 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57038&action=3Dedit ibusfrontend.cpp.ii.xz Originally reported downstream by Toralf F=C3=B6rster at https://bugs.gentoo.org/921765 with GCC 13 (13.2.1 20231216) but I can reproduce it with 14 (14.0.0 20240107) too. ``` $ g++ -c ibusfrontend.cpp.ii In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/unique_ptr.h:37, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/memory:78, from /var/tmp/portage/app-i18n/fcitx-5.1.6/work/fcitx5-5.1.6/src/lib/fcitx/../fc= itx-utils/dbus/servicewatcher.h:10, from /var/tmp/portage/app-i18n/fcitx-5.1.6/work/fcitx5-5.1.6/src/frontend/ibusfr= ontend/ibusfrontend.h:11, from /var/tmp/portage/app-i18n/fcitx-5.1.6/work/fcitx5-5.1.6/src/frontend/ibusfr= ontend/ibusfrontend.cpp:8: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple: In substitution = of =E2=80=98template, std::allocator > > >::_TCC::value>::__is_implicitly_default_constructible(), bool>::type > constexpr std::tuple, std::allocator > > >::tuple() [with _Dummy =3D void; typename std::enable_if, std::allocator > > >::_TCC::value>::__is_implicitly_default_constructible(), bool>::type =3D ]=E2=80=99: /var/tmp/portage/app-i18n/fcitx-5.1.6/work/fcitx5-5.1.6/src/frontend/ibusfr= ontend/ibusfrontend.cpp:594:0: recursively required from =E2=80=98constexpr fcitx::dbus::DBusStruct::DBusStruct() [with Args =3D {std::vector, std::allocator= > >}]=E2=80=99 594 | FCITX_OBJECT_VTABLE_PROPERTY( /var/tmp/portage/app-i18n/fcitx-5.1.6/work/fcitx5-5.1.6/src/frontend/ibusfr= ontend/ibusfrontend.cpp:594:0: required from here /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple:763:62: internal compiler error: in lambda_expr_this_capture, at cp/lambda.cc:825 763 | _TCC<_Dummy>::__is_implicitly_default_constructible(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 0x55781543e3c2 lambda_expr_this_capture(tree_node*, int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/lamb= da.cc:825 0x5578166f2080 maybe_dummy_object(tree_node*, tree_node**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/tree= .cc:4408 0x5578165d0e8e finish_call_expr(tree_node*, vec**, bool, bool, int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/sema= ntics.cc:2968 0x55781678c531 tsubst_expr(tree_node*, tree_node*, int, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:20845 0x5578167bc701 tsubst_template_arg(tree_node*, tree_node*, int, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:12693 0x5578167bc701 tsubst_template_arg(tree_node*, tree_node*, int, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:12681 0x5578167bc701 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:13845 0x557816831076 tsubst_aggr_type_1 =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:14120 0x557816831076 tsubst_aggr_type =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:14090 0x5578167093ed tsubst(tree_node*, tree_node*, int, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:16666 0x557816a1a5e2 type_unification_real =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:23316 0x557816a18cb7 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool, bool) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/pt.c= c:22390 0x557816a17a82 add_template_candidate_real(z_candidate**, tree_node*, tree_node*, tree_node*, tree_node*, vec const*, tree_node*, tree_node*, tree_node*, int, tree_node*, unification_kind_t, bo= ol, int) [clone .isra.0] =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/call= .cc:3631 0x5578165de1b0 add_template_candidate =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/call= .cc:3721 0x5578165de1b0 add_candidates =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/call= .cc:6686 0x5578168bf6e1 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/call= .cc:11678 0x557816ce53ee locate_fn_flags =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/meth= od.cc:1964 0x5578166d487d walk_field_subobs =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/meth= od.cc:2555 0x557816c84683 synthesized_method_walk =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/meth= od.cc:2835 0x557816daea87 get_defaulted_eh_spec(tree_node*, int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20240107/gcc-14-20240107/gcc/cp/meth= od.cc:2877 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ``` ``` $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/conf= igure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra,rtl --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo Harden= ed 14.0.0_pre20240107 p15' --with-gcc-major-version-only --enable-libstdcxx-ti= me --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dpos= ix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --enable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --with-build-config=3D'bootstrap-O3 bootstrap-lto bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20240107 (experimental) (Gentoo Hardened 14.0.0_pre20240= 107 p15) ```=