From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3B263858D1E; Mon, 30 Jan 2023 20:09:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3B263858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675109381; bh=9/P8Eo9Fk3hrnJgwx6755VK6FNcykoVXtYhHF9eQscY=; h=From:To:Subject:Date:From; b=AHf8C6NlPWmfeG5PElg4OuO6naw9SoXrXdlfRi2zM+dXlcvsMAtYD3E92M/tajyLU 7Tc3KM2/mmIfgX0Fuhobf6BcZqfj8mz9d5ryBFc5xdECgnUzd65GUHDemwHSmz97RM PtzBwfclcOl36f3cMYjYnodLUtOUDjXxtjVT8VSE= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108607] New: [12/13 Regression] ICE in potential_constant_expression_1, at cp/constexpr.cc:10003 Date: Mon, 30 Jan 2023 20:09:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108607 Bug ID: 108607 Summary: [12/13 Regression] ICE in potential_constant_expression_1, at cp/constexpr.cc:10003 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 20210808 and 20210822 : $ cat z1.cc constexpr int bar (int x); constexpr int foo (int x) { [[omp::directive (scope nowait)]] return bar (x); } $ g++-13-20230129 -c z1.cc -fopenmp z1.cc: In function 'constexpr int foo(int)': z1.cc:5:16: error: invalid exit from OpenMP structured block 5 | return bar (x); | ^ z1.cc:6:1: sorry, unimplemented: unexpected AST of kind omp_scope 6 | } | ^ z1.cc:6:1: internal compiler error: in potential_constant_expression_1, at cp/constexpr.cc:10003 0x893ef0 potential_constant_expression_1 ../../gcc/cp/constexpr.cc:10003 0x89536a potential_constant_expression_1(tree_node*, bool, bool, bool, bool, int) ../../gcc/cp/constexpr.cc:10027 0x896166 potential_rvalue_constant_expression(tree_node*) ../../gcc/cp/constexpr.cc:10047 0x896166 maybe_save_constexpr_fundef(tree_node*) ../../gcc/cp/constexpr.cc:959 0x926a31 finish_function(bool) ../../gcc/cp/decl.cc:18204 0xa64e03 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.cc:31998 0xa6633c cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.cc:31912 0xa6633c cp_parser_init_declarator ../../gcc/cp/parser.cc:22777 0xa36572 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15390 0xa6dd1b cp_parser_declaration ../../gcc/cp/parser.cc:15076 0xa6e838 cp_parser_translation_unit ../../gcc/cp/parser.cc:5131 0xa6e838 c_parse_file() ../../gcc/cp/parser.cc:49472 0xc169e1 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1248=