public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview]
Message-ID: <bug-108773-4-lkMsdyrrE6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108773-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108773
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is on
admin_commands = { { "sync trace show name=search,type=CephString,req=false",
"sync trace show [filter_str]: show current multisite tracing information" },
{ "sync trace history
name=search,type=CephString,req=false", "sync trace history [filter_str]: show
history of multisite tracing information" },
{ "sync trace active
name=search,type=CephString,req=false", "show active multisite sync entities
information" },
{ "sync trace active_short
name=search,type=CephString,req=false", "show active multisite sync entities
entries" } };
in int RGWSyncTraceManager::hook_to_admin_command(), where admin_commands is:
std::list<std::array<std::string, 3> > admin_commands;
Though, -std=c++20:
#include <list>
#include <vector>
#include <string>
#include <initializer_list>
struct S
{
std::list<std::array<std::string, 3> > admin_commands;
void foo ();
};
void
S::foo ()
{
admin_commands = { { "sync trace show name=search,type=CephString,req=false",
"sync trace show [filter_str]: show current multisite tracing information" },
{ "sync trace history
name=search,type=CephString,req=false", "sync trace history [filter_str]: show
history of multisite tracing information" },
{ "sync trace active
name=search,type=CephString,req=false", "show active multisite sync entities
information" },
{ "sync trace active_short
name=search,type=CephString,req=false", "show active multisite sync entities
entries" } };
}
is rejected with
/tmp/1.C: In member function ‘void S::foo()’:
/tmp/1.C:18:137: error: no match for ‘operator=’ (operand types are
‘std::__cxx11::list<std::array<std::__cxx11::basic_string<char>, 3> >’ and
‘<brace-enclosed initializer list>’)
18 | { "sync trace active_short
name=search,type=CephString,req=false", "show active multisite sync entities
entries" } };
|
^
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: ‘std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::list<_Tp,
_Alloc>::operator=(const std::__cxx11::list<_Tp, _Alloc>&) [with _Tp =
std::array<std::__cxx11::basic_string<char>, 3>; _Alloc =
std::allocator<std::array<std::__cxx11::basic_string<char>, 3> >]’
267 | list<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~
/home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/list.tcc:268:27:
note: no known conversion for argument 1 from ‘<brace-enclosed initializer
list>’ to ‘const
std::__cxx11::list<std::array<std::__cxx11::basic_string<char>, 3> >&’
268 | operator=(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: ‘std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::list<_Tp,
_Alloc>::operator=(std::__cxx11::list<_Tp, _Alloc>&&) [with _Tp =
std::array<std::__cxx11::basic_string<char>, 3>; _Alloc =
std::allocator<std::array<std::__cxx11::basic_string<char>, 3> >]’
929 | operator=(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 ‘<brace-enclosed initializer
list>’ to ‘std::__cxx11::list<std::array<std::__cxx11::basic_string<char>, 3>
>&&’
929 | operator=(list&& __x)
| ~~~~~~~^~~
/home/jakub/src/gcc/obj18i/usr/local/include/c++/13.0.1/bits/stl_list.h:947:7:
note: candidate: ‘std::__cxx11::list<_Tp, _Alloc>& std::__cxx11::list<_Tp,
_Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp =
std::array<std::__cxx11::basic_string<char>, 3>; _Alloc =
std::allocator<std::array<std::__cxx11::basic_string<char>, 3> >]’
947 | operator=(initializer_list<value_type> __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 ‘<brace-enclosed initializer
list>’ to ‘std::initializer_list<std::array<std::__cxx11::basic_string<char>,
3> >’
947 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
next prev parent reply other threads:[~2023-02-13 14:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 12:54 [Bug c++/108773] New: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph kkeithle at redhat dot com
2023-02-13 13:04 ` [Bug c++/108773] " kkeithle at redhat dot com
2023-02-13 13:05 ` marxin at gcc dot gnu.org
2023-02-13 13:16 ` [Bug c++/108773] [13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph since r13-4563-g1e1847612d7f169f marxin at gcc dot gnu.org
2023-02-13 13:18 ` marxin at gcc dot gnu.org
2023-02-13 13:27 ` jakub at gcc dot gnu.org
2023-02-13 14:27 ` jakub at gcc dot gnu.org [this message]
2023-02-13 14:39 ` jakub at gcc dot gnu.org
2023-02-13 15:54 ` jakub at gcc dot gnu.org
2023-02-13 16:03 ` marxin at gcc dot gnu.org
2023-02-13 16:11 ` jakub at gcc dot gnu.org
2023-02-13 17:06 ` jakub at gcc dot gnu.org
2023-02-13 17:07 ` jakub at gcc dot gnu.org
2023-02-27 10:33 ` rguenth at gcc dot gnu.org
2023-03-07 3:01 ` jason at gcc dot gnu.org
2023-03-08 3:35 ` jason at gcc dot gnu.org
2023-03-09 21:26 ` cvs-commit at gcc dot gnu.org
2023-03-09 21:30 ` jason at gcc dot gnu.org
2023-03-13 18:07 ` kkeithle at redhat dot com
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-108773-4-lkMsdyrrE6@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).