From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EC023896C12; Mon, 5 Dec 2022 19:04:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EC023896C12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670267055; bh=goVo6YFDTU34fNhEHeRYH4bkWmD8T1BI+/yNVT2j6HQ=; h=From:To:Subject:Date:From; b=WS5SnE/VYAvVHUOPrQrfFGnFxDJEAs+elWRxKFKGUA/NG9DzQ5koQoxKr5AfXqi3G VtocGQ6gWQhfI6mZ26dEoZzOf8nxNTs4L5zx83IOgoNCqhY6kIfjTfsGHzCPQr3MUp /UQnOjA6I7AAacaBfgDNfMQUYMssgX/cLNrTr/AE= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107977] New: ICE: in add_specializations, at cp/module.cc:13186 with -fdump-ada-spec -fmodule-header Date: Mon, 05 Dec 2022 19:04:15 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 cf_gcchost cf_gcctarget attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107977 Bug ID: 107977 Summary: ICE: in add_specializations, at cp/module.cc:13186 with -fdump-ada-spec -fmodule-header Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 54019 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54019&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-g++ -fdump-ada-spec -fmodule-header testcase.C=20 testcase.C: internal compiler error: in add_specializations, at cp/module.cc:13186 0x705fad depset::hash::add_specializations(bool) /repo/gcc-trunk/gcc/cp/module.cc:13186 0xf3f230 module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) /repo/gcc-trunk/gcc/cp/module.cc:17879 0xf406a4 finish_module_processing(cpp_reader*) /repo/gcc-trunk/gcc/cp/module.cc:20235 0xecfe92 c_parse_final_cleanups() /repo/gcc-trunk/gcc/cp/decl2.cc:5148 0x10fb220 c_common_parse_file() /repo/gcc-trunk/gcc/c-family/c-opts.cc:1266 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ x86_64-pc-linux-gnu-g++ -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= ++ COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r13-4493-20221205115445-= g109148dd16e-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-l= inux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-4493-20221205115445-g109148dd1= 6e-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20221205 (experimental) (GCC)=