From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AF8B3858401; Fri, 19 Jan 2024 07:45:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AF8B3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705650306; bh=1ukmbCLlPRyyfWsqrGevc6kDLs4yHFCjxhqBpNGbxE0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XTzYOsXL9sg5rWnRtgL5uX6NwRuHrw93hmBf8qGzbKyChfIj9zhgU1uvPIeIcTRzJ HdW7VOnd7y/wJxkbQZ3JPrNzCTO5+dvFLarY4NsmqsfsEGA93MyA5M1xx5cl6IEPOF bVPwWTKW2lWk5se7J4Yqk51BXygwYHpVza+kKP5M= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113500] Using std::format with float or double based std::chrono::time_point causes error: no match for 'operator<<' Date: Fri, 19 Jan 2024 07:45:06 +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.1.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: 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=3D113500 --- Comment #2 from Jonathan Wakely --- (In reply to Hirthammer from comment #0) > Consider the following code snippet: As stated at https://gcc.gnu.org/bugs we want a complete test case, not a snippet. #include #include std::chrono::sys_time> tp =3D {}; auto time_string =3D std::format("{:%S}", tp);=