From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABB29385840A; Tue, 13 Sep 2022 19:43:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABB29385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663098199; bh=O1R2S6hQ51IzbMOQOOs6MDgziYStIWelrgb2QNxnkR8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=piESs5O22zR1YinsKcZtBfHUDdHqONVw2MeaAGyIqUmQ26x/vJCGeJ7toGm3dyanr H2Sv6pixFR+TT2b0Hy7UhG420adH4HO8rfrTYkbqJO/oL8s2KaNp0CTv5NTA0jirAk Naxu9ysJPqnEe0Vn3dBJOXazOJlkx900OEYfCcqU= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106932] Incorrect behavior of std::filesystem::copy() with overwrite_existing or update_existing options Date: Tue, 13 Sep 2022 19:43:17 +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: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D106932 --- Comment #3 from Jonathan Wakely --- (In reply to Tom Allen from comment #0) > This appears to be contrary to bullet 4.7.4 in Section 29.11.14.3 of the > C++20 spec, where for regular files in a source directory, the effect sho= uld > be equivalent to passing any options through to a copy_file() call on each > file. No, because f is not a regular file, it's the directory "source".=