From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 20A513858C52; Tue, 13 Feb 2024 13:57:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 20A513858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707832673; bh=hNnO7KY85BDsMXXSe/mBx6yPnROfa9Zt4WYw4Im+HXU=; h=From:To:Subject:Date:From; b=mHsCyPgifHkuaE1SnX9jyk+H8klwGHJKGA/p0TaHXCUC3CbbP1TQ7Jy45O9ZvfYbW ZVL4/3NqpGMtd+nntwFFRyqDVWPLDnS4mCltbmC2gio54Uif9i1g9y6/QXXydGr7L6 ebyGDztMOFKaYCi2J3OZ3ATdGR7Ag4SWbfCfEjmI= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113908] New: [14 Regression] bogus access error with new-expr of current non-template class with implicitly deleted copy ctor Date: Tue, 13 Feb 2024 13:57:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113908 Bug ID: 113908 Summary: [14 Regression] bogus access error with new-expr of current non-template class with implicitly deleted copy ctor Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- struct B { B() =3D default; private: B(const B&); }; struct A { B b; template static void f() { new A(); } }; int main() { A::f(); } : In instantiation of =E2=80=98static void A::f() [with T =3D int]= =E2=80=99: :15:12: required from here :11:27: error: =E2=80=98B::B(const B&)=E2=80=99 is private within th= is context :4:3: note: declared private here :11:27: error: =E2=80=98B::B(const B&)=E2=80=99 is private within th= is context :4:3: note: declared private here=