public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109122] std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt
Date: Tue, 14 Mar 2023 14:33:17 +0000	[thread overview]
Message-ID: <bug-109122-4-UCBrBtW4X9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109122-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109122

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Backtrace:

#0  0x0000000000d482c8 in pp_cxx_unqualified_id (pp=0x40326a0
<actual_pretty_printer>, t=<tree 0x0>)
    at /home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:129
#1  0x0000000000d48574 in pp_cxx_unqualified_id (pp=0x40326a0
<actual_pretty_printer>, 
    t=<record_type 0x7fffe76112a0>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:174
#2  0x0000000000d494ac in pp_cxx_qualified_id (pp=0x40326a0
<actual_pretty_printer>, 
    t=<record_type 0x7fffe76112a0>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:306
#3  0x0000000000d4c0ba in cxx_pretty_printer::simple_type_specifier
(this=0x40326a0 <actual_pretty_printer>, 
    t=<record_type 0x7fffe76112a0>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:1359
#4  0x0000000001153eb8 in pp_c_specifier_qualifier_list (pp=0x40326a0
<actual_pretty_printer>, 
    t=<record_type 0x7fffe76112a0>) at
/home/mpolacek/src/gcc/gcc/c-family/c-pretty-print.cc:514
#5  0x0000000001153c48 in pp_c_specifier_qualifier_list (pp=0x40326a0
<actual_pretty_printer>, 
    t=<reference_type 0x7fffe7710f18>) at
/home/mpolacek/src/gcc/gcc/c-family/c-pretty-print.cc:463
#6  0x000000000115496d in c_pretty_printer::type_id (this=0x40326a0
<actual_pretty_printer>, 
    t=<reference_type 0x7fffe7710f18>) at
/home/mpolacek/src/gcc/gcc/c-family/c-pretty-print.cc:712
#7  0x0000000000d4e262 in cxx_pretty_printer::type_id (this=0x40326a0
<actual_pretty_printer>, 
    t=<reference_type 0x7fffe7710f18>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:1914
#8  0x0000000000d51f52 in pp_cxx_parameter_mapping (pp=0x40326a0
<actual_pretty_printer>, 
    map=<tree_list 0x7fffe73ce668>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:2838
#9  0x0000000000d52109 in pp_cxx_atomic_constraint (pp=0x40326a0
<actual_pretty_printer>, 
    t=<atomic_constr 0x7fffe73cf4c0>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:2858
#10 0x0000000000d52291 in pp_cxx_constraint (pp=0x40326a0
<actual_pretty_printer>, 
    t=<atomic_constr 0x7fffe73cf4c0>) at
/home/mpolacek/src/gcc/gcc/cp/cxx-pretty-print.cc:2886
#11 0x0000000000de46e5 in dump_expr (pp=0x40326a0 <actual_pretty_printer>,
t=<atomic_constr 0x7fffe73cf4c0>, 
    flags=0) at /home/mpolacek/src/gcc/gcc/cp/error.cc:3080
#12 0x0000000000de518f in expr_to_string (decl=<atomic_constr 0x7fffe73cf4c0>)
    at /home/mpolacek/src/gcc/gcc/cp/error.cc:3315
#13 0x0000000000de8e2c in cp_printer (pp=0x424c120, text=0x7fffffffa0e0,
spec=0x424e071 "E", precision=0, 
    wide=false, set_locus=false, verbose=false, quoted=0x7fffffff9cdf,
buffer_ptr=0x424de80)
    at /home/mpolacek/src/gcc/gcc/cp/error.cc:4484
#14 0x0000000003228de9 in pp_format (pp=0x424c120, text=0x7fffffffa0e0)
    at /home/mpolacek/src/gcc/gcc/pretty-print.cc:1475
#15 0x00000000031fb2c6 in diagnostic_report_diagnostic (context=0x41e7980
<global_diagnostic_context>, 
    diagnostic=0x7fffffffa0e0) at /home/mpolacek/src/gcc/gcc/diagnostic.cc:1579
#16 0x00000000031fb9e2 in diagnostic_impl (richloc=0x7fffffffa1a0,
metadata=0x0, opt=-1, 
    gmsgid=0x32f0570 "the expression %qE evaluated to %<false%>",
ap=0x7fffffffa250, kind=DK_NOTE)
    at /home/mpolacek/src/gcc/gcc/diagnostic.cc:1743
#17 0x00000000031fbe6d in inform (location=19346236, 
    gmsgid=0x32f0570 "the expression %qE evaluated to %<false%>")
    at /home/mpolacek/src/gcc/gcc/diagnostic.cc:1822
#18 0x0000000000cfecca in diagnose_atomic_constraint (t=<atomic_constr
0x7fffe73cf4c0>, 
    args=<tree_vec 0x7fffe73ce6b8>, result=<integer_cst 0x7fffea227318>,
info=...)
    at /home/mpolacek/src/gcc/gcc/cp/constraint.cc:3856

  parent reply	other threads:[~2023-03-14 14:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-14  9:10 [Bug c++/109122] New: " samuel.beer at gmx dot ch
2023-03-14 10:12 ` [Bug c++/109122] " redi at gcc dot gnu.org
2023-03-14 10:15 ` redi at gcc dot gnu.org
2023-03-14 14:33 ` mpolacek at gcc dot gnu.org [this message]
2023-03-14 14:42 ` mpolacek at gcc dot gnu.org
2023-11-10 19:45 ` pinskia at gcc dot gnu.org
2023-11-10 21:22 ` ppalka at gcc dot gnu.org

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-109122-4-UCBrBtW4X9@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).