From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8944 invoked by alias); 19 Nov 2001 23:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8913 invoked by uid 71); 19 Nov 2001 23:56:00 -0000 Resent-Date: 19 Nov 2001 23:56:00 -0000 Resent-Message-ID: <20011119235600.8912.qmail@sourceware.cygnus.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, post@volker-wysk.de Received:(qmail 4823 invoked by uid 61); 19 Nov 2001 23:46:07 -0000 Message-Id:<20011119234607.4822.qmail@sourceware.cygnus.com> Date: Wed, 14 Nov 2001 10:56:00 -0000 From: post@volker-wysk.de Reply-To: post@volker-wysk.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.2 (1.1.1.1.2.21) Subject: c++/4911: private base class constructor inaccessible in unusual class hierarchy X-SW-Source: 2001-11/txt/msg00317.txt.bz2 List-Id: >Number: 4911 >Category: c++ >Synopsis: private base class constructor inaccessible in unusual class hierarchy >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Nov 19 15:56:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Volker Wysk >Release: gcc 3.0.2, gcc 2.95 >Organization: >Environment: Debian GNU/Linux 2.2r2, i386 >Description: The attached program fails to compile. /tmp $ gcc-3.0 x.C x.C:10: warning: direct base `I' inaccessible in `C' due to ambiguity x.C: In constructor `C::C()': x.C:11: no matching function for call to `I::I()' x.C:1: candidates are: I::I(const I&) x.C:3: I::I(int) I think both, the error and the warning, are wrong. >How-To-Repeat: gcc-3.0 x.C >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/msword; name="x.C" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="x.C" c3RydWN0IEkgewogIGludCBpOwogIEkoaW50IGopIHsgaSA9IGo7IH07Cn07CgpzdHJ1Y3QgQiA6 IHByaXZhdGUgSSB7CiAgQihpbnQgeCkgOiBJKHgpIHt9Owp9OwoKc3RydWN0IEMgOiBwdWJsaWMg QiwgcHJpdmF0ZSBJIHsKICBDKCkgOiBCKDEpLCBJKDIpIHt9Owp9Owo=