From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9024 invoked by alias); 5 Feb 2009 15:10:00 -0000 Received: (qmail 8925 invoked by uid 48); 5 Feb 2009 15:09:43 -0000 Date: Thu, 05 Feb 2009 15:10:00 -0000 Subject: [Bug c++/39109] New: [4.4 Regression] Accessible constructor required for new X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00438.txt.bz2 struct N { private: virtual ~N (); }; N * foo () { return new N (); } used to compile until http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138355 Does it really need to have an accessible destructor if it is never deleted? Dodji cited [basic.life]/4 which could mean this is valid. Distilled from thunderbird. -- Summary: [4.4 Regression] Accessible constructor required for new Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39109