From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 77E063858C52; Fri, 23 Sep 2022 11:26:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77E063858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663932365; bh=th9MbX3PXscDtqtJwedHK5WaXQKzInvsdj0RvVAHThU=; h=From:To:Subject:Date:From; b=OVbaISo4lGIKzg1YPMz+LyImwpg3vUQlGwmmIVOV2Mq9WWT0vFsCBFEITxEWfYMOf cpVgqaZenxVKDWIFy7Tzqvwx5tt9eAr7w9yytyLcmzlUBLeE0WGL1ebIHU0OX9w4Vj YkLNUn77Q72gks3FoYofuk5NiZQdj7AfL2pG7ETw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107015] New: __debug::bitset has different ABI for -std=c++98 Date: Fri, 23 Sep 2022 11:26:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107015 Bug ID: 107015 Summary: __debug::bitset has different ABI for -std=3Dc++98 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Keywords: ABI Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- g:17e3f4aa17624af245bae5408b6e5c1fdf90c9ec and the g:c5589aa7e1e8bf1e56d3c46d952675e1087be311 follow-up changed = to not use the debug base container in C++11 mode, because that non-literal ba= se class means that __debug::bitset is non-literal too. But that means that __debug::bitset is not ABI compatible between -std=3Dc+= +98 and later modes. We should either remove the _Safe_sequence_base class unconditionally (and = at that point, we might as well just get rid of and make it an alias for the normal one), or we should use the base unconditionally and gi= ve up the literal class property. The standard doesn't actually require is_literal_v> to be true, although maybe it should.=