From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D279F3858C2F; Thu, 21 Jul 2022 09:06:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D279F3858C2F From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106376] [LWG3545] The implementation of std::pointer_traits seems wrong Date: Thu, 21 Jul 2022 09:06:04 +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: 13.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: SUSPENDED 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_status everconfirmed cf_reconfirmed_on short_desc 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: Thu, 21 Jul 2022 09:06:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106376 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |SUSPENDED Ever confirmed|0 |1 Last reconfirmed| |2022-07-21 Summary|The implementation of |[LWG3545] The |std::pointer_traits seems |implementation of |wrong |std::pointer_traits seems | |wrong --- Comment #2 from Jonathan Wakely --- (In reply to =E5=BA=B7=E6=A1=93=E7=91=8B from comment #0) > libstdc++ specifies element_type as a meaningless type, so the static_ass= ert > still passes. >=20 > Although the behavior of libstdc++ is incorrect, but I am not feel good > about this static_assert hard error.. Right, it's completely unusable, see PR 96416. Libstdc++ already implements my proposed solution, the standard just hasn't caught up yet ;-) Suspending until 3545 is resolved, but I expect to close this at some future date, as there's nothing for libstdc++ to do here.=