From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7410 invoked by alias); 13 Feb 2006 07:11:28 -0000 Received: (qmail 7396 invoked by uid 48); 13 Feb 2006 07:11:24 -0000 Date: Mon, 13 Feb 2006 07:11:00 -0000 Subject: [Bug c++/26256] New: ignores using declaration X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "igodard at pacbell dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg01292.txt.bz2 List-Id: The code: struct A {int* next; }; struct B {int* next; }; struct C : public A, public B { using A::next; }; void foo(C* c) { c->next = 0; } gets you: ~/ootbc/sim$ g++ foo.cc foo.cc: In function `void foo(C*)': foo.cc:4: error: request for member `next' is ambiguous foo.cc:2: error: candidates are: int*B::next foo.cc:1: error: int*A::next Compiles OK on Comeau. Ivan -- Summary: ignores using declaration Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256