From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70494383F85E; Wed, 6 May 2020 08:58:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70494383F85E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588755493; bh=0N9H0HI4ay294AtS522f09kb179YjdnSbV47ufWP+x8=; h=From:To:Subject:Date:From; b=akGEiMniDQafzORCAIi4XXBbP9baPL5bIffaax/dS6Yp6fnS++oB/H8XSK+RVl/Bl aoRATN9Aaljisi6fmXvhK2i4T+SXHJY2hOiDoA8tckZQGbnDj/DHrJ3QiM/HmiZKE9 pGmofBi/+Hzy8YlHgaKiWSkB0XSpbuDPmSHMvBNE= From: "anbu1024.me at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzk0OTY4XSBOZXc6IFsxMCBSZWdyZXNzaW9uXSBpbnRl?= =?UTF-8?B?cm5hbCBjb21waWxlciBlcnJvcjogdHJlZSBjaGVjazogZXhwZWN0ZWQgY2xh?= =?UTF-8?B?c3Mg4oCYdHlwZeKAmSwgaGF2ZSDigJhleGNlcHRpb25hbOKAmSAoZXJyb3Jf?= =?UTF-8?B?bWFyaykgaW4gdXNlbGVzc190eXBlX2NvbnZlcnNpb25fcCwgYXQgZ2ltcGxl?= =?UTF-8?B?LWV4cHIuYzo4Nw==?= Date: Wed, 06 May 2020 08:58:13 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anbu1024.me at gmail dot com 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 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, 06 May 2020 08:58:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94968 Bug ID: 94968 Summary: [10 Regression] internal compiler error: tree check: expected class =E2=80=98type=E2=80=99, have =E2=80=98ex= ceptional=E2=80=99 (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c=20 int foo() {=20 __builtin_speculation_safe_value ( 1 , x ); } ---------------------------------------------------------------------------= ----- $ gcc-10 --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---------------------------------------------------------------------------= ----- $ gcc-10 test.c=20 test.c: In function =E2=80=98foo=E2=80=99: test.c:3:41: error: =E2=80=98x=E2=80=99 undeclared (first use in this funct= ion) 3 | __builtin_speculation_safe_value ( 1 , x ); | ^ test.c:3:41: note: each undeclared identifier is reported only once for each function it appears in test.c:3:2: internal compiler error: tree check: expected class =E2=80=98ty= pe=E2=80=99, have =E2=80=98exceptional=E2=80=99 (error_mark) in useless_type_conversion_p, at= gimple-expr.c:87 3 | __builtin_speculation_safe_value ( 1 , x ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x731f2f tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../gcc-10-20200419/gcc/tree.c:9777 0x665cf0 tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) ../../gcc-10-20200419/gcc/tree.h:3410 0x665cf0 useless_type_conversion_p(tree_node*, tree_node*) ../../gcc-10-20200419/gcc/gimple-expr.c:87 0x8919e4 speculation_safe_value_resolve_params ../../gcc-10-20200419/gcc/c-family/c-common.c:6720 0x8919e4 resolve_overloaded_builtin(unsigned int, tree_node*, vec*) ../../gcc-10-20200419/gcc/c-family/c-common.c:7407 0x81a6c9 c_build_function_call_vec(unsigned int, vec, tree_node*, vec*, vec*) ../../gcc-10-20200419/gcc/c/c-typeck.c:3199 0x838cde c_parser_postfix_expression_after_primary ../../gcc-10-20200419/gcc/c/c-parser.c:10501 0x8307a1 c_parser_postfix_expression ../../gcc-10-20200419/gcc/c/c-parser.c:10176 0x834ada c_parser_unary_expression ../../gcc-10-20200419/gcc/c/c-parser.c:8273 0x83632d c_parser_cast_expression ../../gcc-10-20200419/gcc/c/c-parser.c:8115 0x8365b9 c_parser_binary_expression ../../gcc-10-20200419/gcc/c/c-parser.c:7918 0x837595 c_parser_conditional_expression ../../gcc-10-20200419/gcc/c/c-parser.c:7652 0x837bb0 c_parser_expr_no_commas ../../gcc-10-20200419/gcc/c/c-parser.c:7569 0x837e11 c_parser_expression ../../gcc-10-20200419/gcc/c/c-parser.c:10637 0x8385b7 c_parser_expression_conv ../../gcc-10-20200419/gcc/c/c-parser.c:10670 0x82dd0b c_parser_statement_after_labels ../../gcc-10-20200419/gcc/c/c-parser.c:6301 0x82ff71 c_parser_compound_statement_nostart ../../gcc-10-20200419/gcc/c/c-parser.c:5805 0x84c8c4 c_parser_compound_statement ../../gcc-10-20200419/gcc/c/c-parser.c:5617 0x84e381 c_parser_declaration_or_fndef ../../gcc-10-20200419/gcc/c/c-parser.c:2505 0x8566e3 c_parser_external_declaration ../../gcc-10-20200419/gcc/c/c-parser.c:1745 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---------------------------------------------------------------------------= ----- $ gcc-9 --version gcc (GCC) 9.3.1 20200425 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---------------------------------------------------------------------------= ----- $ gcc-9 test.c=20 test.c: In function =E2=80=98foo=E2=80=99: test.c:3:41: error: =E2=80=98x=E2=80=99 undeclared (first use in this funct= ion) 3 | __builtin_speculation_safe_value ( 1 , x ); | ^ test.c:3:41: note: each undeclared identifier is reported only once for each function it appears in test.c:3:2: error: both arguments must be compatible 3 | __builtin_speculation_safe_value ( 1 , x ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=