From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4E26386F80C; Sun, 28 Feb 2021 18:54:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4E26386F80C From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600 Date: Sun, 28 Feb 2021 18:54:17 +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: alexander.lelyakin at googlemail dot com X-Bugzilla-Status: UNCONFIRMED 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: Sun, 28 Feb 2021 18:54:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99245 --- Comment #1 from Alexander Lelyakin --- There is a shorter sequence: g++ -std=3Dc++20 -fmodules-ts -x c++-system-header typeinfo g++ -std=3Dc++20 -fmodules-ts -x c++-system-header ostream ---- /usr/local/include/c++/11.0.1/ostream: internal compiler error: in write_cluster, at cp/module.cc:14605 0x6e2d18 module_state::write_cluster(elf_out*, depset**, unsigned int, depset::hash&, unsigned int*, unsigned int*) ../../gcc/gcc/cp/module.cc:14605 0xa634de module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17785 0xa640cf finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19922 0x9f776b c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5175 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---- g++ (GCC) 11.0.1 20210228 (experimental)=