From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F5F73858D37; Fri, 28 Jul 2023 06:43:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F5F73858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690526635; bh=BlVgVwjeuwmcf1mS1vdkWUSZPHSl+e97gbRxAJIRrk4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tiYi5giy7TWBgb8PI2tMlckttCwtJ0icrQRf/+n0m1Yu24lhrc0wdxuCeBQ5rLYH9 lntF/YQ0lFqOQsgk34RxcVT/87vlA5x9ObE3iI3Q35UvXKG6GhGKd/950CZ7LIw036 c9J/YcUUpuawEB4M/dzJtCAFXwGQjTtowp1QOuv0= From: "andris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110836] [C++20] g++ should report when there is no way to create structure or class Date: Fri, 28 Jul 2023 06:43:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: andris 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=3D110836 --- Comment #2 from Andris Pavenis --- Warning would allow to detected problem earlier. Otherwise it could only be detected later in case when affected structure or class is part of an library and its objects are not created directly inside= the library. In this case the inability to create objects may only be detected later when building other packages which uses this library In our case the problem appeared when replacing deriving from boost::noncopyable with added deleted copy constructor and deleted assignme= nt operators.=