From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0809D3858C60; Fri, 19 Jan 2024 07:40:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0809D3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705650054; bh=wZYG2MKL7U3aIw8eJvDTbWzc4VCoAzKjoIo5PU05iGY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZUhBRvjo86/fdjQQQ9nnNjZd5Rc3uRvj4QLwGwt+K5iyono9sVjftXYxKpBcN+ChS iQZXKf5T/ZeL9v9yme3oInwo3H7uw+SSEx80b4PzR1LdBJf2CIiKmF5zGUHgLN+oac rZuaCA7yC2f/zQjcTC2ez1sPOfU5H/t56YBbJkbg= 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:40:53 +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: target_milestone assigned_to everconfirmed bug_status cf_reconfirmed_on 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 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.3 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2024-01-19 --- Comment #1 from Jonathan Wakely --- (In reply to Hirthammer from comment #0) > error: no match for 'operator<<' (operand types are > 'std::__cxx11::basic_ostringstream' and 'const > std::chrono::time_point std::chrono::duration >') > 726 | __os << __t; > | ~~~~~^~~~~~ > --- >=20 > If you change the type def `Representation` to an integer or unsigned > integer type, the code compiles. Confirmed. > Side note:=20 > Don't know if it helps, but the latest clang compiler version produces the > same error. The related bug report can be found here: >=20 > https://github.com/llvm/llvm-project/issues/78555 Since this is a bug in libstdc++ headers it's not at all surprising that you get the same error with any compiler using those headers. This should not h= ave been reported to llvm.=