From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3471 invoked by alias); 11 Jan 2004 01:05:07 -0000 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 Received: (qmail 3460 invoked by uid 48); 11 Jan 2004 01:05:06 -0000 Date: Sun, 11 Jan 2004 01:05:00 -0000 Message-ID: <20040111010506.3459.qmail@sources.redhat.com> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040106205426.13590.boris@kolpackov.net> References: <20040106205426.13590.boris@kolpackov.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13590] [3.3/3.4 regression] Non-existing ambiguity when inhering through virtuals two identical using declarations. X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg01046.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-01-11 01:05 ------- Confirmed with Wolfgang testcase: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590#c1 There is only one Node base class because of the virtual inheritance, so there is only one Node::f function. There is no ambiguity. When the lookup is performed, it should be noted that the two using declarations *do* refer to the same declaration on the same base object. Boris, as Wolfgang explained, your other testcase is indeed non ambigous and correctly accepted by GCC since, at the point of call, there is only one and only one "best" overload. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |rejects-valid Last reconfirmed|0000-00-00 00:00:00 |2004-01-11 01:05:06 date| | Summary|unexpected overload |[3.3/3.4 regression] Non- |resolution |existing ambiguity when | |inhering through virtuals | |two identical using | |declarations. Target Milestone|--- |3.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590