From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 590BA3858C41; Wed, 17 May 2023 14:06:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 590BA3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684332419; bh=33S+72XzRcxBG3M/uQE+dGyiWm8Wc/sjA9AFe6oLsD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KosJ4zKO56ey3bXPx7VE6MFjBr6JPDuqEIh9nTY7PzQGfHLfkP4uqNqhhkEcBOppG 1fufS/gNhjWrd5UExr5Q1snumHl8Zcp+SGwZkGhEbS5TXFcATxolfxaV+cK8NvU2mM kIQmhlb2hh9+Dqp4q3vSSmy9OmNTbp1CyKV6hCVs= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109890] vector's constructor doesn't start object lifetimes during constant evaluation Date: Wed, 17 May 2023 14:06:59 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org 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: everconfirmed cf_reconfirmed_on bug_status 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=3D109890 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-05-17 Status|UNCONFIRMED |NEW --- Comment #1 from Jonathan Wakely --- For trivial types the std::uninitialized_xxx algos elide the constructors a= nd just do something like memcpy/memset. We need to use std::is_constant_evaluated() to elide the elision in this case.=