From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2767394D8A4; Thu, 14 Jan 2021 18:21:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2767394D8A4 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTg2ODddIE5ldzogWzExIFJlZ3Jlc3Npb25dIElD?= =?UTF-8?B?RSB0cmVlIGNoZWNrOiBleHBlY3RlZCB0cmVlIHRoYXQgY29udGFpbnMg4oCY?= =?UTF-8?B?ZGVjbCBtaW5pbWFs4oCZIHN0cnVjdHVyZSwgaGF2ZSDigJhvdmVybG9hZA==?= =?UTF-8?B?4oCZIGluIGRpYWdub3NlX25hbWVfY29uZmxpY3QsIGF0IGNwL25hbWUtbG9v?= =?UTF-8?B?a3VwLmM6MjcyOSBzaW5jZSByMTEtNjY1Mi1nNzk2ZWFkMTlmODUzNzJlNQ==?= Date: Thu, 14 Jan 2021 18:21:46 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 cc 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: Thu, 14 Jan 2021 18:21:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98687 Bug ID: 98687 Summary: [11 Regression] ICE tree check: expected tree that contains =E2=80=98decl minimal=E2=80=99 structure, have= =E2=80=98overload=E2=80=99 in diagnose_name_conflict, at cp/name-lookup.c:2729 since r11-6652-g796ead19f85372e5 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: mpolacek at gcc dot gnu.org Target Milestone: --- Reduced from bitcoin package: $ cat mesh.ii extern "C" namespace std { void log1p(); } namespace std_fallback { template void log1p(); } template struct log1p_impl { static int run() { using std::log1p; using std_fallback::log1p; return 0; } }; void log1p() { log1p_impl::run; } $ g++ mesh.ii -c mesh.ii:1:33: warning: declaration of =E2=80=98void std::log1p()=E2=80=99 c= onflicts with built-in declaration =E2=80=98double std::log1p(double)=E2=80=99 [-Wbuiltin-declaration-mismatch] 1 | extern "C" namespace std { void log1p(); } | ^~~~~ mesh.ii: In instantiation of =E2=80=98static int log1p_impl< >::run() [with =3D int]=E2=80=99: mesh.ii:12:33: required from here mesh.ii:8:25: internal compiler error: tree check: expected tree that conta= ins =E2=80=98decl minimal=E2=80=99 structure, have =E2=80=98overload=E2=80=99 i= n diagnose_name_conflict, at cp/name-lookup.c:2729 8 | using std_fallback::log1p; | ^~~~~ 0x876572 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.c:9984 0x6b96d0 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.h:3452 0x6b96d0 diagnose_name_conflict /home/marxin/Programming/gcc/gcc/cp/name-lookup.c:2729 0xa9856e supplement_binding_1 /home/marxin/Programming/gcc/gcc/cp/name-lookup.c:2712 0xa9f566 supplement_binding /home/marxin/Programming/gcc/gcc/cp/name-lookup.c:2750 0xa9f566 push_local_binding /home/marxin/Programming/gcc/gcc/cp/name-lookup.c:4237 0xb3e19a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18138 0xb3e19a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18046 0xb3bf61 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18073 0xb3bf61 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18046 0xb3ba87 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18400 0xb3ba87 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:18046 0xb27148 instantiate_body /home/marxin/Programming/gcc/gcc/cp/pt.c:25748 0xb2832d instantiate_decl(tree_node*, bool, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:26037 0xb56bdb instantiate_pending_templates(int) /home/marxin/Programming/gcc/gcc/cp/pt.c:26116 0xa16c2b c_parse_final_cleanups() /home/marxin/Programming/gcc/gcc/cp/decl2.c:4965 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=