From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 034743858C60; Mon, 22 Apr 2024 07:37:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 034743858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713771465; bh=2myjGMhzSfrYQNb6uYa07OkavnycjfvCJ8RzG/bg7rM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KntPgGhbQxCGAEPcJYwGP1pzFA5I+16hOQ3EHQkyUm06KWABhsQUMqIRZkArlFMQp 46yVPSc/cCcqf6MsSuEmMxegTDvANuL6SF6YGYuLFR1HjeX6gkz7ZxZaJz5I9qPw6+ jNLiU6loPRtcq2nqQKZVaPL5zbaZtfIXyoO0vu70= From: "porten at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114795] internal compiler error: in finish_member_declaration after module import in gcc 14.0.1 snapshot Date: Mon, 22 Apr 2024 07:37:44 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: porten at kde dot 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114795 --- Comment #4 from porten at kde dot org --- Thanks for the reminder about the workaround. I had once seen it before try= ing module but did not see the relation when running into problems later. In t= he small test case, reordering the import and includes helps! It is just that = the original code base exposes another problem. In fact, the original one I experienced: /opt/gcc-14/include/c++/14.0.1/format: In member function =E2=80=98auto std::__format::_Sink_iter<_CharT>::_M_reserve(std::size_t) const [with _Cha= rT =3D char]=E2=80=99: /opt/gcc-14/include/c++/14.0.1/format:2632:7: error: invalid conversion in return statement 2632 | _M_reserve(size_t __n) const | ^~~~~~~~~~ <<< Unknown tree: template_type_parm >>> struct _Reservation return D.267932; /opt/gcc-14/include/c++/14.0.1/format:2632:7: internal compiler error: =E2=80=98verify_gimple=E2=80=99 failed 0x138b51e verify_gimple_in_seq(gimple*, bool) /home/porten/git/gcc/gcc/tree-cfg.cc:5318 [...] If of any interest, I can try to reduce a test case preserving the error.=