From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AD1C3858C52; Fri, 23 Sep 2022 11:33:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AD1C3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663932807; bh=NlhDU2tV75m+MaN+6RuhT9RKT2fNkgq6HoqW3FkB+QI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LX/Zp4jsGbT3s++c9mu3m8IchAoc88qejlICeDiNMAGj6L2XnFAwWtvm8ZHASp7B4 g0D56ZLfqfMgEe5sdwenXBYIDipkoy2uAydmT66TTXccENXjnLG8OsPQCbgH0pa4CR 9jLyTdYtDiI/IK7q1J/+mac2ne4h2xFHmXHD/sek= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107015] __debug::bitset has different ABI for -std=c++98 Date: Fri, 23 Sep 2022 11:33:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: 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=3D107015 --- Comment #2 from Jonathan Wakely --- And we don't even do that check for the const overload, even in debug mode! // _GLIBCXX_RESOLVE_LIB_DEFECTS // 11. Bitset minor problems _GLIBCXX_CONSTEXPR bool operator[](size_t __pos) const { #if __cplusplus < 201103L // TODO: Check in debug-mode too. __glibcxx_check_subscript(__pos); #endif return _Base::operator[](__pos); } I think we should just scrap .=