public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109320] New: [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795
Date: Tue, 28 Mar 2023 18:54:19 +0000	[thread overview]
Message-ID: <bug-109320-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 109320
           Summary: [13 Regression] ICE in coerce_template_parameter_pack,
                    at cp/pt.cc:8795
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20230226 and 20230312, with -std=c++20 or -std=c++23 :


$ cat z1.cc
template<bool B>
struct S {};
template<int... C>
using u = S<true>;
struct X {};
X a = u {};


$ g++-13-20230326 -c z1.cc -std=c++23
z1.cc:6:10: internal compiler error: Segmentation fault
    6 | X a = u {};
      |          ^
0xe24a1f crash_signal
        ../../gcc/toplev.cc:314
0x8a3de1 coerce_template_parameter_pack
        ../../gcc/cp/pt.cc:8795
0x8a3de1 coerce_template_parms(tree_node*, tree_node*, tree_node*, int, bool)
        ../../gcc/cp/pt.cc:9067
0x8b10fd type_targs_deducible_from(tree_node*, tree_node*)
        ../../gcc/cp/pt.cc:30278
0x8b12b8 alias_ctad_tweaks
        ../../gcc/cp/pt.cc:30224
0x88d434 deduction_guides_for
        ../../gcc/cp/pt.cc:30375
0x88dae5 do_class_deduction
        ../../gcc/cp/pt.cc:30522
0x88dae5 do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
        ../../gcc/cp/pt.cc:30715
0x8c2f20 finish_compound_literal(tree_node*, tree_node*, int, fcl_t)
        ../../gcc/cp/semantics.cc:3213
0x845d1c cp_parser_functional_cast
        ../../gcc/cp/parser.cc:32610
0x856d2b cp_parser_postfix_expression
        ../../gcc/cp/parser.cc:7703
0x86a60f cp_parser_unary_expression
        ../../gcc/cp/parser.cc:9141
0x83e79f cp_parser_cast_expression
        ../../gcc/cp/parser.cc:10045
0x83f07f cp_parser_binary_expression
        ../../gcc/cp/parser.cc:10147
0x83fa74 cp_parser_assignment_expression
        ../../gcc/cp/parser.cc:10490
0x841bb7 cp_parser_constant_expression
        ../../gcc/cp/parser.cc:10785
0x842c31 cp_parser_initializer_clause
        ../../gcc/cp/parser.cc:25489
0x844aab cp_parser_initializer
        ../../gcc/cp/parser.cc:25429
0x874d2c cp_parser_init_declarator
        ../../gcc/cp/parser.cc:22994
0x84fd4f cp_parser_simple_declaration
        ../../gcc/cp/parser.cc:15402

             reply	other threads:[~2023-03-28 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 18:54 gscfq@t-online.de [this message]
2023-03-28 19:04 ` [Bug c++/109320] " mpolacek at gcc dot gnu.org
2023-03-28 23:31 ` jason at gcc dot gnu.org
2023-03-28 23:32 ` jason at gcc dot gnu.org
2023-03-29  2:24 ` cvs-commit at gcc dot gnu.org
2023-03-29  2:24 ` jason 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-109320-4@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).