From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE1F43836C48; Tue, 16 Feb 2021 21:14:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE1F43836C48 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99071] [modules] ICE with initializer_list & iostream Date: Tue, 16 Feb 2021 21:14:40 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Tue, 16 Feb 2021 21:14:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99071 --- Comment #1 from Nathan Sidwell --- Reduced testcase: // 99071_a.H template void begin (T *); // 99071_b.H import "99071_a.H"; template void begin(T &); ./cc1plus -fmodule-header -quiet -std=3Dc++17 99071_a.H ./cc1plus -fmodule-header -quiet -std=3Dc++17 99071_b.H 99071_b.H:4:15: internal compiler error: tree check: expected binding_vecto= r, have overload in maybe_record_mergeable_decl, at cp/name-lookup.c:3528 4 | void begin(T &); | ^ 0x1c561e8 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../../src/gcc/tree.c:9814 0xa0e321 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../../src/gcc/tree.h:3349 0xc75e3b maybe_record_mergeable_decl ../../../src/gcc/cp/name-lookup.c:3528 0xc7780c do_pushdecl ../../../src/gcc/cp/name-lookup.c:3850 0xc7b29d do_pushdecl_with_scope ../../../src/gcc/cp/name-lookup.c:4850 0xc805d8 pushdecl_namespace_level(tree_node*, bool) ../../../src/gcc/cp/name-lookup.c:6212=