From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B956383F861; Wed, 10 Jun 2020 22:52:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B956383F861 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591829568; bh=avb/by7NltCdcT0Rf2c+FcZCh5Ow+VKB8bPaRaSICDY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OZs86kMcNyYGx4XtXlMEzKQHTXNnRZzAqVIwItjvpBkJ95Uqs9wGzCdLawwlDEkvt oPD12GXa7ZswNafvzWsN/4w/KwtCcYva/A9zFXgTVCvQTzD6hXg7DWIcZczUOHtkY7 /iRNcnPbQuy7VYIJjbiAlgyuZQjeTG817c5n9OIY= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95629] consteval operator== crashes compiler Date: Wed, 10 Jun 2020 22:52:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc everconfirmed keywords bug_status cf_reconfirmed_on Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2020 22:52:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95629 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2020-06-10 --- Comment #1 from Marek Polacek --- Thanks for the report. 95629.C: In function =E2=80=98int main()=E2=80=99: 95629.C:13:42: internal compiler error: in extract_call_expr, at cp/call.c:= 6634 13 | static_assert(hana{} =3D=3D hana{}); | ^ 0x93ae4c extract_call_expr(tree_node*) /home/mpolacek/src/gcc/gcc/cp/call.c:6634 0x939f5a build_new_op_1 /home/mpolacek/src/gcc/gcc/cp/call.c:6335 0x93abb8 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/mpolacek/src/gcc/gcc/cp/call.c:6592 0xcb24b5 build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) /home/mpolacek/src/gcc/gcc/cp/typeck.c:4280 0xb42759 cp_parser_binary_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9777 0xb42c12 cp_parser_assignment_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9914 0xb43462 cp_parser_constant_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:10208 0xb4d16e cp_parser_static_assert /home/mpolacek/src/gcc/gcc/cp/parser.c:14741 0xb4b0ff cp_parser_block_declaration /home/mpolacek/src/gcc/gcc/cp/parser.c:13608 0xb4a594 cp_parser_declaration_statement /home/mpolacek/src/gcc/gcc/cp/parser.c:13217 0xb4651c cp_parser_statement /home/mpolacek/src/gcc/gcc/cp/parser.c:11523 0xb47230 cp_parser_statement_seq_opt /home/mpolacek/src/gcc/gcc/cp/parser.c:11889 0xb47114 cp_parser_compound_statement /home/mpolacek/src/gcc/gcc/cp/parser.c:11839 0xb5d175 cp_parser_function_body /home/mpolacek/src/gcc/gcc/cp/parser.c:23115 0xb5d499 cp_parser_ctor_initializer_opt_and_function_body /home/mpolacek/src/gcc/gcc/cp/parser.c:23166 0xb69008 cp_parser_function_definition_after_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:29062 0xb68e2f cp_parser_function_definition_from_specifiers_and_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:28978 0xb58384 cp_parser_init_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:20721 0xb4b57c cp_parser_simple_declaration /home/mpolacek/src/gcc/gcc/cp/parser.c:13785 0xb4b11e cp_parser_block_declaration /home/mpolacek/src/gcc/gcc/cp/parser.c:13611=