From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDB373940CFD; Wed, 18 Mar 2020 11:21:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDB373940CFD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584530477; bh=ZaFaHJ5AXw585g3w8/AdapNd9fvf1p455xSvxUJLJ2E=; h=From:To:Subject:Date:From; b=MGaHPRSN+PVsvlTqU/0NRRidJtFXdr6On/kF7Hbvvl8jr922bpKS/yVgPNXIMi5/7 SZmgPNshjnDo3JRvf5lAQaNv+MhedS6iYj+e/ffCJIX7dbzHD+me55ZbeKMXDpIpaD RPivk7/9ma6/9uefBnMCxfa9knr9a+oQP2eTuInA= From: "tangyixuan at mail dot dlut.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94210] New: ICE in tsubst, at cp/pt.c:15105 Date: Wed, 18 Mar 2020 11:21:17 +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: tangyixuan at mail dot dlut.edu.cn 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, 18 Mar 2020 11:21:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94210 Bug ID: 94210 Summary: ICE in tsubst, at cp/pt.c:15105 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tangyixuan at mail dot dlut.edu.cn Target Milestone: --- Hi, gcc crashes given the following example, while clang compiles normally. $ cat 1.cpp template struct X {}; namespace Nested { template int f1(X... a); int a1 =3D f1(X(), X()); } $ g++ -v Using built-in specs. COLLECT_GCC=3D/usr/local/gcc-20200315/bin/g++ COLLECT_LTO_WRAPPER=3D/usr/local/gcc-20200315/libexec/gcc/x86_64-pc-linux-g= nu/10.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-10-20200315/configure --prefix=3D/usr/local/gcc-202= 00315 --enable-checking=3Drelease --enable-languages=3Dc,c++ --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.0.1 20200315 (experimental) (GCC)=20 $=E3=80=80g++ -c -std=3Dc++11 1.cpp 1.cpp: In substitution of =E2=80=98template int Nested::f1(X...) [with T =3D ]=E2=80=99: 1.cpp:6:62: required from here 1.cpp:6:62: internal compiler error: in tsubst, at cp/pt.c:15105 6 | int a1 =3D f1(X(), X()); | ^ 0x5f0f06 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc-10-20200315/gcc/cp/pt.c:15105 0x75dd9a unify_pack_expansion ../../gcc-10-20200315/gcc/cp/pt.c:22534 0x74aff5 unify ../../gcc-10-20200315/gcc/cp/pt.c:23307 0x74a20a unify ../../gcc-10-20200315/gcc/cp/pt.c:23204 0x74ae8b unify ../../gcc-10-20200315/gcc/cp/pt.c:23301 0x75e5da try_class_unification ../../gcc-10-20200315/gcc/cp/pt.c:22298 0x74a744 unify ../../gcc-10-20200315/gcc/cp/pt.c:23338 0x75d248 unify_one_argument ../../gcc-10-20200315/gcc/cp/pt.c:21531 0x75db29 unify_pack_expansion ../../gcc-10-20200315/gcc/cp/pt.c:22546 0x749b80 type_unification_real ../../gcc-10-20200315/gcc/cp/pt.c:21670 0x769684 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bo= ol, bool) ../../gcc-10-20200315/gcc/cp/pt.c:21030 0x640da5 add_template_candidate_real ../../gcc-10-20200315/gcc/cp/call.c:3396 0x6414f4 add_template_candidate ../../gcc-10-20200315/gcc/cp/call.c:3481 0x6414f4 add_candidates ../../gcc-10-20200315/gcc/cp/call.c:5834 0x6418f7 add_candidates ../../gcc-10-20200315/gcc/cp/call.c:4482 0x6418f7 perform_overload_resolution ../../gcc-10-20200315/gcc/cp/call.c:4490 0x644525 build_new_function_call(tree_node*, vec**, int) ../../gcc-10-20200315/gcc/cp/call.c:4564 0x77bd5c finish_call_expr(tree_node*, vec**, b= ool, bool, int) ../../gcc-10-20200315/gcc/cp/semantics.c:2671 0x71f998 cp_parser_postfix_expression ../../gcc-10-20200315/gcc/cp/parser.c:7427 0x7041ba cp_parser_binary_expression ../../gcc-10-20200315/gcc/cp/parser.c:9519 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=