From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9DB383858C66; Mon, 24 Jul 2023 18:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DB383858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690222864; bh=wYaWmX855cUCKF/nf4kf/8wXRI/l2/JGZx86tQA5JVk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AKPVuLcgM/4haa/F7tkHWliQakZhClOK0kkTqusugvIkHw14KciuHDB/83t1ZKY9C eI0qcwDcR0WVm7ObotTpC3g7HzPV1AmjpU0QmRQaBvGM/OCEjlsCTOTVGncqwIzFOK T0/2j1pf+JJAn08D2rtG5sZUTxWURTpj45pxfR9k= From: "arthur.j.odwyer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/70472] is_copy_constructible>>::value is true Date: Mon, 24 Jul 2023 18:21:03 +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: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: arthur.j.odwyer at gmail dot com X-Bugzilla-Status: NEW 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: cc 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=3D70472 Arthur O'Dwyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.j.odwyer at gmail d= ot com --- Comment #14 from Arthur O'Dwyer --- > The problem is that std::vector does have a copy constructor, so the trai= t value is true, but instantiating that constructor produces an error when = the value_type is not copyable. Worse, the value_type can be incomplete, as in struct Node { std::vector children_; }; Askar: see https://quuxplusone.github.io/blog/2020/02/05/vector-is-copyable-except-whe= n-its-not/ I suggest closing this bug report as Not A Bug. It certainly shouldn't be tagged `wrong-code`.=