From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B940238493EA; Mon, 13 Feb 2023 14:27:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B940238493EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676298436; bh=GUhLHARFBsYqORcvlkNnXmk83HUAqKlIzXkO/3xfaqU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LvwNtVMLcu0aP5HWxQX0blmH34v72iwpbwqLE1lvuRXXJZ1koN54h4Lumgs5YtCQ3 5aElS3VG8JRcLJxKE8wuNP4i/BFXg4RYNIS9eQRpi6uFMe7x4TUpE3TsLWHsVfvMXj SOpWFjNCaICer2dx5DKuQsa6lPcII79x5OHE5LV0= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108773] [13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph since r13-4563-g1e1847612d7f169f Date: Mon, 13 Feb 2023 14:27:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D108773 --- Comment #5 from Jakub Jelinek --- It is on admin_commands =3D { { "sync trace show name=3Dsearch,type=3DCephString,r= eq=3Dfalse", "sync trace show [filter_str]: show current multisite tracing information" = }, { "sync trace history name=3Dsearch,type=3DCephString,req=3Dfalse", "sync trace history [filter_s= tr]: show history of multisite tracing information" }, { "sync trace active name=3Dsearch,type=3DCephString,req=3Dfalse", "show active multisite sync e= ntities information" }, { "sync trace active_short name=3Dsearch,type=3DCephString,req=3Dfalse", "show active multisite sync e= ntities entries" } }; in int RGWSyncTraceManager::hook_to_admin_command(), where admin_commands i= s: std::list > admin_commands; Though, -std=3Dc++20: #include #include #include #include struct S { std::list > admin_commands; void foo (); }; void S::foo () { admin_commands =3D { { "sync trace show name=3Dsearch,type=3DCephString,r= eq=3Dfalse", "sync trace show [filter_str]: show current multisite tracing information" = }, { "sync trace history name=3Dsearch,type=3DCephString,req=3Dfalse", "sync trace history [filter_s= tr]: show history of multisite tracing information" }, { "sync trace active name=3Dsearch,type=3DCephString,req=3Dfalse", "show active multisite sync e= ntities information" }, { "sync trace active_short name=3Dsearch,type=3DCephString,req=3Dfalse", "show active multisite sync e= ntities entries" } }; } is rejected with /tmp/1.C: In member function =E2=80=98void S::foo()=E2=80=99: /tmp/1.C:18:137: error: no match for =E2=80=98operator=3D=E2=80=99 (operand= types are =E2=80=98std::__cxx11::list, 3>= >=E2=80=99 and =E2=80=98=E2=80=99) 18 | { "sync trace active_short name=3Dsearch,type=3DCephString,req=3Dfalse", "show active multisite sync e= ntities entries" } }; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ In file included from /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/list:66, from /tmp/1.C:1: /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/list.tcc:267:5: note: candidate: =E2=80=98std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::li= st<_Tp, _Alloc>::operator=3D(const std::__cxx11::list<_Tp, _Alloc>&) [with _Tp =3D std::array, 3>; _Alloc =3D std::allocator, 3> >]=E2=80=99 267 | list<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~ /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/list.tcc:268:2= 7: note: no known conversion for argument 1 from =E2=80=98=E2=80=99 to =E2=80=98const std::__cxx11::list, 3> >&=E2=80= =99 268 | operator=3D(const list& __x) | ~~~~~~~~~~~~^~~ In file included from /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/list:65: /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/stl_list.h:929= :7: note: candidate: =E2=80=98std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::li= st<_Tp, _Alloc>::operator=3D(std::__cxx11::list<_Tp, _Alloc>&&) [with _Tp =3D std::array, 3>; _Alloc =3D std::allocator, 3> >]=E2=80=99 929 | operator=3D(list&& __x) | ^~~~~~~~ /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/stl_list.h:929= :24: note: no known conversion for argument 1 from =E2=80=98=E2=80=99 to =E2=80=98std::__cxx11::list, 3> >&&=E2=80=99 929 | operator=3D(list&& __x) | ~~~~~~~^~~ /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/stl_list.h:947= :7: note: candidate: =E2=80=98std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::li= st<_Tp, _Alloc>::operator=3D(std::initializer_list<_Tp>) [with _Tp =3D std::array, 3>; _Alloc =3D std::allocator, 3> >]=E2=80=99 947 | operator=3D(initializer_list __l) | ^~~~~~~~ /home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/stl_list.h:947= :46: note: no known conversion for argument 1 from =E2=80=98=E2=80=99 to =E2=80=98std::initializer_list, 3> >=E2=80=99 947 | operator=3D(initializer_list __l) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~=