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++/107321] New: [10/11/12/13 Regression] ICE in strip_array_types, at tree.cc:7284
Date: Wed, 19 Oct 2022 17:34:51 +0000	[thread overview]
Message-ID: <bug-107321-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 107321
           Summary: [10/11/12/13 Regression] ICE in strip_array_types, at
                    tree.cc:7284
           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 with r10 between 20191103 and 20191110:


$ cat z1.cc
template <typename A, typename... T>
void f (T... b)
{
  bool operator == (A x, A y) = default;
}


$ gcc-13-20221016 -c z1.cc -std=c++2a
z1.cc: In function 'void f(T ...)':
z1.cc:4:29: warning: declaration of 'bool operator==(A, A)' has 'extern' and is
initialized
    4 |   bool operator == (A x, A y) = default;
      |                             ^
z1.cc:4:33: internal compiler error: Segmentation fault
    4 |   bool operator == (A x, A y) = default;
      |                                 ^~~~~~~
0xe7a2ff crash_signal
        ../../gcc/toplev.cc:314
0x110aee0 strip_array_types(tree_node*)
        ../../gcc/tree.cc:7284
0x957988 cp_type_quals(tree_node const*)
        ../../gcc/cp/typeck.cc:11451
0x94f713 cp_build_qualified_type(tree_node*, int, int)
        ../../gcc/cp/tree.cc:1378
0x9595d6 same_type_ignoring_top_level_qualifiers_p(tree_node*, tree_node*)
        ../../gcc/cp/typeck.cc:1745
0x85a805 early_check_defaulted_comparison
        ../../gcc/cp/method.cc:1227
0x85a805 defaultable_fn_check(tree_node*)
        ../../gcc/cp/method.cc:3433
0x815f28 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/cp/decl.cc:8247
0x8de9e4 cp_parser_init_declarator
        ../../gcc/cp/parser.cc:22895
0x8baca2 cp_parser_simple_declaration
        ../../gcc/cp/parser.cc:15284
0x8bc569 cp_parser_declaration_statement
        ../../gcc/cp/parser.cc:14365
0x8bcb5b cp_parser_statement
        ../../gcc/cp/parser.cc:12436
0x8bdb24 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.cc:12853
0x8bdbdf cp_parser_compound_statement
        ../../gcc/cp/parser.cc:12805
0x8ddb08 cp_parser_function_body
        ../../gcc/cp/parser.cc:25179
0x8ddb08 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.cc:25230
0x8ddfc6 cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.cc:31387
0x8df149 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.cc:31304
0x8df149 cp_parser_init_declarator
        ../../gcc/cp/parser.cc:22633
0x8e1f43 cp_parser_single_declaration
        ../../gcc/cp/parser.cc:31903

             reply	other threads:[~2022-10-19 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 17:34 gscfq@t-online.de [this message]
2022-10-20  8:43 ` [Bug c++/107321] [10/11/12/13 Regression] ICE in strip_array_types, at tree.cc:7284 since r10-4397-gb7689b962dd6536b marxin at gcc dot gnu.org
2022-10-20  9:19 ` rguenth at gcc dot gnu.org
2023-07-07 10:44 ` [Bug c++/107321] [11/12/13/14 " rguenth 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-107321-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).