From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EE953857736; Fri, 8 Mar 2024 10:45:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EE953857736 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709894737; bh=MolClw7BJYEqmSWc3aj2MnpZMNfmFPuZp2elAHRAffM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LBhGmjwBZT7dCn8+A7aG1Tm8KLYlGTDWj3QEwjsZMU7L7nL5U2Tna7NUIFtbRAXlO EYJg2FGw+t0tGgh7MvvZO20kn4UbM5uz54rX91z1hKe1fte4Z9Bo7UZ1jE1hCNlqvU 2wY+iz+5Obj0Nz5ClJNZLKmpd/9B+ilKh/0IpEho= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114240] sys_days not being parsed with only a date in the stream Date: Fri, 08 Mar 2024 10:45:36 +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: 14.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: --- 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=3D114240 --- Comment #6 from Jonathan Wakely --- Actually the standard does support Howard's intended behaviour: "If the parse fails to decode a valid date, is.setstate(ios_base::failbit) = is called and tp is not modified." It says "date", not "time point" or "UTC time" or anything like that.=