From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 66BF3386101D; Mon, 3 Aug 2020 16:43:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66BF3386101D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596472993; bh=CNG85k3qo2ZK+pjZ44e47i0hYurfw1TApYPUvYcpw5w=; h=From:To:Subject:Date:From; b=xTJ/fZVOIouegMbzMVMoNZ2/ThdP0d3wZMJhQyCCXSFrDuEZcK10BnMJqM39lxMqu /tORAnzeuaTr5HDSYR5zIygsxp/kfj+U6Hz5P0z/KLv9f1gTR5+AnE7Dff3FZ4lU+/ 90Iv+l7bGztuqtKS57sbCg2dNXJUxyjvL8kgT9Q4= From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTY0MzddIE5ldzogWzEwLzExIFJlZ3Jlc3Npb25d?= =?UTF-8?B?IElDRSBpbiB0cmVlIGNoZWNrOiBleHBlY3RlZCB0cmVlIHRoYXQgY29udGFp?= =?UTF-8?B?bnMg4oCYZGVjbCBjb21tb27igJkgc3RydWN0dXJlLCBoYXZlIOKAmGVycm9y?= =?UTF-8?B?X21hcmvigJkgaW4gc3ludGhlc2l6ZV9pbXBsaWNpdF90ZW1wbGF0ZV9wYXJt?= =?UTF-8?B?LCBhdCBjcC9wYXJzZXIuYzo0NDI0Ng==?= Date: Mon, 03 Aug 2020 16:43: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: 11.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu 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 keywords 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: Mon, 03 Aug 2020 16:43:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96437 Bug ID: 96437 Summary: [10/11 Regression] ICE in tree check: expected tree that contains =E2=80=98decl common=E2=80=99 structure, = have =E2=80=98error_mark=E2=80=99 in synthesize_implicit_tem= plate_parm, at cp/parser.c:44246 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. This code, reduced by C-Vise, makes GCC-trunk ICE, while GCC-10 and downwar= ds versions behave well in error-recovery. Input: //small.cc template <()> void A(auto){} Command: g++ small.cc Output: small.cc:1:11: error: expected identifier before =E2=80=98(=E2=80=99 token 1 | template <()> void A(auto){} | ^ small.cc:1:22: internal compiler error: tree check: expected tree that cont= ains =E2=80=98decl common=E2=80=99 structure, have =E2=80=98error_mark=E2=80=99 = in synthesize_implicit_template_parm, at cp/parser.c:44246 1 | template <()> void A(auto){} | ^~~~ 0x7c899e tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.c:9861 0x6440d9 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.h:3417 0x6440d9 synthesize_implicit_template_parm ../../gcc/cp/parser.c:44246 0x9c72b0 cp_parser_simple_type_specifier ../../gcc/cp/parser.c:18064 0x9aa52d cp_parser_type_specifier ../../gcc/cp/parser.c:17873 0x9ab50e cp_parser_decl_specifier_seq ../../gcc/cp/parser.c:14436 0x9c90ee cp_parser_parameter_declaration ../../gcc/cp/parser.c:22858 0x9c9a82 cp_parser_parameter_declaration_list ../../gcc/cp/parser.c:22681 0x9c9e81 cp_parser_parameter_declaration_clause ../../gcc/cp/parser.c:22608 0x9b6951 cp_parser_direct_declarator ../../gcc/cp/parser.c:21285 0x9b6951 cp_parser_declarator ../../gcc/cp/parser.c:21149 0x9cbab6 cp_parser_init_declarator ../../gcc/cp/parser.c:20649 0x9d31f4 cp_parser_single_declaration ../../gcc/cp/parser.c:29590 0x9d3356 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:29163 0x9d3b00 cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:29428 0x9d76e1 cp_parser_declaration ../../gcc/cp/parser.c:13459 0x9d7d2b cp_parser_translation_unit ../../gcc/cp/parser.c:4793 0x9d7d2b c_parse_file() ../../gcc/cp/parser.c:44081 0xaf2e9d c_common_parse_file() ../../gcc/c-family/c-opts.c:1188 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. My gcc version is Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/home/haoxin/corpus-compilers/gcc-trunk/gcc-master/bu= ild/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --prefix=3D/home/haoxin/corpus-compilers/gcc-trunk/gcc-master/build/ --enable-languages=3Dc,c++ CC=3Dgcc CXX=3Dg++ Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200801 (experimental) (GCC)=20 Thanks, Haoxin=