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++/108606] New: [13 Regression] ICE in potential_constant_expression_1, at cp/constexpr.cc:9713
Date: Mon, 30 Jan 2023 20:08:31 +0000	[thread overview]
Message-ID: <bug-108606-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 108606
           Summary: [13 Regression] ICE in
                    potential_constant_expression_1, at
                    cp/constexpr.cc:9713
           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 20220925 and 20221009 :


$ cat z1.cc
void f() {
  g([&](auto x) {
    class C {
      friend void h();
    };
  }
}


$ g++-13-20230129 -c z1.cc
z1.cc: In lambda function:
z1.cc:6:3: internal compiler error: in potential_constant_expression_1, at
cp/constexpr.cc:9713
    6 |   }
      |   ^
0x7efa5b potential_constant_expression_1
        ../../gcc/cp/constexpr.cc:9712
0x7ee09a potential_constant_expression_1
        ../../gcc/cp/constexpr.cc:9281
0x7eeb5e potential_constant_expression_1
        ../../gcc/cp/constexpr.cc:9303
0x7ee09a potential_constant_expression_1
        ../../gcc/cp/constexpr.cc:9281
0x7ee09a potential_constant_expression_1
        ../../gcc/cp/constexpr.cc:9281
0x7efdda potential_constant_expression_1(tree_node*, bool, bool, bool, bool,
int)
        ../../gcc/cp/constexpr.cc:10027
0x83868c finish_function(bool)
        ../../gcc/cp/decl.cc:18200
0x8666e4 finish_lambda_function(tree_node*)
        ../../gcc/cp/lambda.cc:1807
0x8e5df9 cp_parser_lambda_body
        ../../gcc/cp/parser.cc:11827
0x8e5df9 cp_parser_lambda_expression
        ../../gcc/cp/parser.cc:11148
0x8e5df9 cp_parser_primary_expression
        ../../gcc/cp/parser.cc:5826
0x8e9056 cp_parser_postfix_expression
        ../../gcc/cp/parser.cc:7777
0x8fc5df cp_parser_unary_expression
        ../../gcc/cp/parser.cc:9141
0x8d118f cp_parser_cast_expression
        ../../gcc/cp/parser.cc:10045
0x8d1a4f cp_parser_binary_expression
        ../../gcc/cp/parser.cc:10147
0x8d2454 cp_parser_assignment_expression
        ../../gcc/cp/parser.cc:10490
0x8d63bf cp_parser_parenthesized_expression_list_elt
        ../../gcc/cp/parser.cc:8110
0x8d6885 cp_parser_parenthesized_expression_list
        ../../gcc/cp/parser.cc:8579
0x8e88e0 cp_parser_postfix_expression
        ../../gcc/cp/parser.cc:7854
0x8fc5df cp_parser_unary_expression
        ../../gcc/cp/parser.cc:9141

             reply	other threads:[~2023-01-30 20:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 20:08 gscfq@t-online.de [this message]
2023-01-30 20:13 ` [Bug c++/108606] [13 Regression] ICE in potential_constant_expression_1 with friend function declaration inside a local class of a generic/templated lambda pinskia at gcc dot gnu.org
2023-01-30 20:13 ` pinskia at gcc dot gnu.org
2023-01-31 15:22 ` mpolacek at gcc dot gnu.org
2023-01-31 15:25 ` mpolacek at gcc dot gnu.org
2023-02-21 12:51 ` rguenth at gcc dot gnu.org
2023-02-21 13:25 ` jakub at gcc dot gnu.org
2023-02-21 13:48 ` jakub at gcc dot gnu.org
2023-03-01  9:25 ` cvs-commit at gcc dot gnu.org
2023-03-01  9:28 ` jakub 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-108606-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).