From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C1CF385828F; Mon, 4 Dec 2023 11:36:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C1CF385828F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701689789; bh=mQHgXk+MLxKNpi0vw0f8llx5KaR3cY8FW6Zl48kTP80=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IF5vIHBB5shsVVuHSE387yjIXAsC3h1V4CcUA5VtdgNbbRn9nOHbQtrshqQLQASdX ckE8UYR1QqjLg3eyrlN3SfVUsazDUF4y/XAfJRXTmaMqyfUjDF2yumtElBR+xRlucL 7Pspp/pMWnKCcUqWFiyfjxveDd5AVnsBeF8UupVQ= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/112832] [std::format] Broken non-SFINAE-friendly `set_debug_format()` for `const char *` formatter Date: Mon, 04 Dec 2023 11:36:25 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed assigned_to bug_status target_milestone 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=3D112832 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-12-04 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Status|UNCONFIRMED |ASSIGNED Target Milestone|--- |13.3 --- Comment #1 from Jonathan Wakely --- (In reply to Egor from comment #0) > GCC doesn't seem to implement `{:?}` debug format for strings yet. Correct, see PR 109162 > Yet for some reason `std::formatter` has a > `set_debug_format()` function, which causes a hard error when used (isn't > SFINAE-friendly). The error has nothing to do with it being SFINAE-friendly or not. > `set_debug_format()` should be SFINAE-friendly, to allow the user to call= it > conditionally when available. No, it should just not exist yet.=